Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Prefixed library directory for each internal third party library.
From now on, include for instance <tolua/tolua++> instead of <tolua++.h>
This may avoid problems if external include directories because some of our includes our modified. Consider e.g. ENet to be in /usr/include/enet/enet.h. Then you will have /usr/inlcude as include directory, possibly revealing an installed version of, say, TinyXML++.

  • Property svn:eol-style set to native
File size: 1023 bytes
Line 
1SET( OIS_SRC_FILES
2  OISEffect.cpp
3  OISException.cpp
4  OISForceFeedback.cpp
5  OISInputManager.cpp
6  OISJoyStick.cpp
7  OISKeyboard.cpp
8  OISObject.cpp
9)
10
11IF(WIN32)
12  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
13    win32/Win32ForceFeedback.cpp
14    win32/Win32InputManager.cpp
15    win32/Win32JoyStick.cpp
16    win32/Win32KeyBoard.cpp
17    win32/Win32Mouse.cpp
18  )
19ELSEIF (APPLE)
20  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
21    mac/MacHelpers.cpp
22    mac/MacHIDManager.cpp
23    mac/MacInputManager.cpp
24    mac/MacKeyboard.cpp
25    mac/MacMouse.cpp
26  )
27ELSEIF (UNIX)
28  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
29    linux/EventHelpers.cpp
30    linux/LinuxForceFeedback.cpp
31    linux/LinuxInputManager.cpp
32    linux/LinuxJoyStickEvents.cpp
33    linux/LinuxKeyboard.cpp
34    linux/LinuxMouse.cpp
35  )
36ENDIF (WIN32)
37
38INCLUDE_DIRECTORIES(.)
39
40ADD_LIBRARY( ois_orxonox SHARED ${OIS_SRC_FILES} )
41SET_TARGET_PROPERTIES(ois_orxonox PROPERTIES DEFINE_SYMBOL "OIS_NONCLIENT_BUILD")
42
43IF(WIN32)
44  TARGET_LINK_LIBRARIES( ois_orxonox ${DirectX_LIBRARIES} )
45ENDIF(WIN32)
46
Note: See TracBrowser for help on using the repository browser.