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 | |
---|
1 | SET_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 | ) |
---|
14 | GET_ALL_HEADER_FILES(UTIL_HDR_FILES) |
---|
15 | SET(UTIL_FILES ${UTIL_SRC_FILES} ${UTIL_HDR_FILES}) |
---|
16 | GENERATE_SOURCE_GROUPS(${UTIL_FILES}) |
---|
17 | # Also add OrxonoxConfig.h to have it least somewhere in the IDE |
---|
18 | LIST(APPEND UTIL_FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h) |
---|
19 | SOURCE_GROUP("" FILES ${CMAKE_BINARY_DIR}/src/OrxonoxConfig.h) |
---|
20 | |
---|
21 | ADD_LIBRARY(util SHARED ${UTIL_FILES}) |
---|
22 | SET_TARGET_PROPERTIES(util PROPERTIES DEFINE_SYMBOL "UTIL_SHARED_BUILD") |
---|
23 | TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY}) |
---|
24 | |
---|
25 | IF (NOT WIN32) |
---|
26 | INSTALL(TARGETS util LIBRARY DESTINATION lib) |
---|
27 | ENDIF (NOT WIN32) |
---|
Note: See
TracBrowser
for help on using the repository browser.