Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2593 was 2588, checked in by rgrieder, 16 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: 1023 bytes
Line 
1INCLUDE_DIRECTORIES(.)
2
3SET( OIS_SRC_FILES
4  OISEffect.cpp
5  OISException.cpp
6  OISForceFeedback.cpp
7  OISInputManager.cpp
8  OISJoyStick.cpp
9  OISKeyboard.cpp
10  OISObject.cpp
11)
12
13IF(WIN32)
14  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
15    win32/Win32ForceFeedback.cpp
16    win32/Win32InputManager.cpp
17    win32/Win32JoyStick.cpp
18    win32/Win32KeyBoard.cpp
19    win32/Win32Mouse.cpp
20  )
21ELSEIF (APPLE)
22  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
23    mac/MacHelpers.cpp
24    mac/MacHIDManager.cpp
25    mac/MacInputManager.cpp
26    mac/MacKeyboard.cpp
27    mac/MacMouse.cpp
28  )
29ELSEIF (UNIX)
30  SET( OIS_SRC_FILES ${OIS_SRC_FILES}
31    linux/EventHelpers.cpp
32    linux/LinuxForceFeedback.cpp
33    linux/LinuxInputManager.cpp
34    linux/LinuxJoyStickEvents.cpp
35    linux/LinuxKeyboard.cpp
36    linux/LinuxMouse.cpp
37  )
38ENDIF (WIN32)
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.