Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 29, 2009, 11:35:54 PM (15 years ago)
Author:
rgrieder
Message:

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
Location:
code/branches/buildsystem2/src/ois
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/ois/CMakeLists.txt

    r2610 r2621  
    1 SET( OIS_SRC_FILES
     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
    217  OISEffect.cpp
    318  OISException.cpp
     
    823  OISObject.cpp
    924)
    10 
    1125IF(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   )
    19 ELSEIF (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   )
    27 ELSEIF (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   )
     26  ADD_SUBDIRECTORY(win32)
     27ELSEIF(APPLE)
     28  ADD_SUBDIRECTORY(mac)
     29ELSEIF(UNIX)
     30  ADD_SUBDIRECTORY(linux)
    3631ENDIF (WIN32)
    3732
     33GENERATE_SOURCE_GROUPS(${OIS_FILES})
     34
     35REMOVE_COMPILER_FLAGS("-DUNICODE -D_UNICODE" MSVC)
    3836INCLUDE_DIRECTORIES(.)
    3937
    40 ADD_LIBRARY( ois_orxonox SHARED ${OIS_SRC_FILES} )
     38ADD_LIBRARY(ois_orxonox SHARED ${OIS_FILES} )
    4139SET_TARGET_PROPERTIES(ois_orxonox PROPERTIES DEFINE_SYMBOL "OIS_NONCLIENT_BUILD")
    4240
    4341IF(WIN32)
    44   TARGET_LINK_LIBRARIES( ois_orxonox ${DirectX_LIBRARIES} )
     42  TARGET_LINK_LIBRARIES( ois_orxonox ${DIRECTX_LIBRARIES} )
    4543ENDIF(WIN32)
    4644
Note: See TracChangeset for help on using the changeset viewer.