Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ois/CMakeLists.txt @ 2624

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

Replaced most of the ELSE(…) and ENDIF(…) with ELSE() and ENDIF(). Kept the shorter and the spreaded ones for better clarity since that's what it originally was thought for. But I can really pollute the code when having long conditions and lots of IFs.

  • Property svn:eol-style set to native
File size: 823 bytes
Line 
1SET_SOURCE_FILES(OIS_FILES
2  OIS.h
3  OISConfig.h
4  OISEffect.h
5  OISEvents.h
6  OISException.h
7  OISFactoryCreator.h
8  OISForceFeedback.h
9  OISInputManager.h
10  OISInterface.h
11  OISJoyStick.h
12  OISKeyboard.h
13  OISMouse.h
14  OISObject.h
15  OISPrereqs.h
16
17  OISEffect.cpp
18  OISException.cpp
19  OISForceFeedback.cpp
20  OISInputManager.cpp
21  OISJoyStick.cpp
22  OISKeyboard.cpp
23  OISObject.cpp
24)
25IF(WIN32)
26  ADD_SUBDIRECTORY(win32)
27ELSEIF(APPLE)
28  ADD_SUBDIRECTORY(mac)
29ELSEIF(UNIX)
30  ADD_SUBDIRECTORY(linux)
31ENDIF()
32
33GENERATE_SOURCE_GROUPS(${OIS_FILES})
34
35REMOVE_COMPILER_FLAGS("-DUNICODE -D_UNICODE" MSVC)
36INCLUDE_DIRECTORIES(.)
37
38ADD_LIBRARY(ois_orxonox SHARED ${OIS_FILES})
39SET_TARGET_PROPERTIES(ois_orxonox PROPERTIES DEFINE_SYMBOL "OIS_NONCLIENT_BUILD")
40
41IF(WIN32)
42  TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES})
43ENDIF()
44
Note: See TracBrowser for help on using the repository browser.