Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/util/CMakeLists.txt @ 2621

Last change on this file since 2621 was 2621, checked in by rgrieder, 15 years ago

This commit gets a little ugly, couldn't separate that anymore:

  • Renamed UseTolua.cmake to GenerateLuaBindings.cmake
  • Applied the macros for compiler flags, linker flags, header files and source groups Updated the whole build tree for that
  • Created real compiler config scripts (BuildConfigGCC.cmake and BuildConfigMSVC.cmake)
  • Large scale clean up in BuildConfig.cmake
  • You can now specify your own LibraryConfig and BuildConfig script via CMake Cache
  • Lots of small changes and fixes
  • Property svn:eol-style set to native
File size: 757 bytes
Line 
1SET_SOURCE_FILES(UTIL_SRC_FILES
2  Clipboard.cc
3  CRC32.cc
4  Exception.cc
5  ExprParser.cc
6  Math.cc
7  MultiType.cc
8  OutputBuffer.cc
9  OutputHandler.cc
10  SignalHandler.cc
11  String.cc
12  SubString.cc
13)
14GET_ALL_HEADER_FILES(UTIL_HDR_FILES)
15SET(UTIL_FILES ${UTIL_SRC_FILES} ${UTIL_HDR_FILES})
16GENERATE_SOURCE_GROUPS(${UTIL_FILES})
17# Also add OrxonoxConfig.h to have it least somewhere in the IDE
18LIST(APPEND UTIL_FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h)
19SOURCE_GROUP("" FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h)
20
21ADD_LIBRARY(util SHARED ${UTIL_FILES})
22SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD")
23TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY})
24
25IF (NOT WIN32)
26  INSTALL(TARGETS util LIBRARY DESTINATION lib)
27ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.