Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2009, 8:28:37 PM (16 years ago)
Author:
rgrieder
Message:

Added new CMake functions: ORXONOX_ADD_LIBRARY and ORXONOX_ADD_EXECUTABLE.
They replace the current functions ADD_LIBRARY and ADD_EXECUTABLE to allow for clearer and easier declaration.
And it allows for GCC precompiled header file support in the first place ;)
More information can be found in TargetUtilities.cmake

Location:
code/branches/pch/cmake
Files:
3 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/cmake/BuildConfigGCC.cmake

    r3111 r3116  
    2323 #    Sets the right compiler and linker flags for GCC.
    2424 #
     25
     26# Shortcut for CMAKE_COMPILER_IS_GNUCXX and ..._GNUC
     27SET(CMAKE_COMPILER_IS_GNU TRUE)
    2528
    2629# Determine compiler version
  • code/branches/pch/cmake/BuildConfigMSVC.cmake

    r2710 r3116  
    2424 #
    2525
     26################### Compiler Version ####################
     27
     28# We make use of variadic macros, which is only supported by MSVC 8 and above
     29IF(MSVC_VERSION LESS 1400)
     30  MESSAGE(FATAL_ERROR "Microsoft Visual Studio versions below 8 (2005) are not supported because of missing compiler extensions.")
     31ENDIF()
     32
     33
    2634######################## Options ########################
    2735
    28 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE)
     36IF(MSVC80)
     37  OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE)
     38ENDIF(MSVC80)
    2939
    3040#################### Compiler Flags #####################
Note: See TracChangeset for help on using the changeset viewer.