Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/CMakeLists.txt @ 2588

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

Visual Studio generator working for all build types. Compiles but does not run yet.

  • Had to define some export symbols
  • tinyxml and cpptcl have to be linked statically
  • some other libraries can be linked shared that were linked statically for windows (now for mingw only)
  • added two macros: ADD_CXX_FLAG(_flag _condition) and ADD_C_FLAG(_flag _condition)
  • Property svn:eol-style set to native
File size: 464 bytes
Line 
1SET( CEGUILUA_SRC_FILES
2  CEGUILua.cpp
3  CEGUILuaFunctor.cpp
4  lua_CEGUI.cpp
5  required.cpp
6)
7
8ADD_CXX_FLAGS("-wd4996" MSVC)
9
10ADD_LIBRARY( ceguilua_orxonox SHARED ${CEGUILUA_SRC_FILES} )
11
12SET_TARGET_PROPERTIES(ceguilua_orxonox PROPERTIES DEFINE_SYMBOL "CEGUILUA_EXPORTS")
13TARGET_LINK_LIBRARIES(ceguilua_orxonox
14  tolualib_orxonox
15  ${LUA_LIBRARIES}
16  ${CEGUI_LIBRARY}
17)
18
19IF (NOT WIN32)
20  INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib)
21ENDIF (NOT WIN32)
Note: See TracBrowser for help on using the repository browser.