Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/cpptcl/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: 556 bytes
Line 
1SET(CPPTCL_FILES
2  CppTcl.h
3  CppTcl.cc
4
5  details/callbacks.h
6  details/callbacks_v.h
7  details/constructors.h
8  details/conversions.h
9  details/dispatchers.h
10  details/metahelpers.h
11  details/methods.h
12  details/methods_v.h
13)
14GENERATE_SOURCE_GROUPS(${CPPTCL_FILES})
15
16IF(MSVC)
17  ADD_LIBRARY(cpptcl_orxonox STATIC ${CPPTCL_FILES})
18ELSE(MSVC)
19  ADD_LIBRARY(cpptcl_orxonox SHARED ${CPPTCL_FILES})
20ENDIF(MSVC)
21
22TARGET_LINK_LIBRARIES(cpptcl_orxonox
23  ${TCL_LIBRARY}
24)
25
26IF (NOT WIN32)
27  INSTALL(TARGETS cpptcl_orxonox LIBRARY DESTINATION lib)
28ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.