~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to extern/oics/CMakeLists.txt

  • Committer: Scott Howard
  • Date: 2016-09-15 20:56:29 UTC
  • Revision ID: showard@debian.org-20160915205629-3tvfxe47zrb41a91
Cron update. Git hash: 37278b5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
set(OICS_LIBRARY "oics")
2
 
 
3
 
# Sources
4
 
 
5
 
set(OICS_SOURCE_FILES
6
 
        ICSChannel.cpp
7
 
        ICSControl.cpp
8
 
        ICSInputControlSystem.cpp
9
 
        ICSInputControlSystem_keyboard.cpp
10
 
        ICSInputControlSystem_mouse.cpp
11
 
        ICSInputControlSystem_joystick.cpp
12
 
        ICSPrerequisites.h
13
 
)
14
 
 
15
 
set(TINYXML_SOURCE_FILES
16
 
        tinyxml.cpp
17
 
        tinyxmlparser.cpp
18
 
        tinyxmlerror.cpp
19
 
        tinystr.cpp     
 
1
add_library(oics STATIC
 
2
    ICSChannel.cpp
 
3
    ICSControl.cpp
 
4
    ICSInputControlSystem.cpp
 
5
    ICSInputControlSystem_keyboard.cpp
 
6
    ICSInputControlSystem_mouse.cpp
 
7
    ICSInputControlSystem_joystick.cpp
 
8
    ICSPrerequisites.h
20
9
)
21
10
 
22
11
if(USE_SYSTEM_TINYXML)
23
 
    add_library(${OICS_LIBRARY} STATIC ${OICS_SOURCE_FILES})
24
 
    target_link_libraries(${OICS_LIBRARY} ${TINYXML_LIBRARIES})
 
12
    target_link_libraries(oics ${TinyXML_LIBRARIES})
25
13
else()
26
 
    add_library(${OICS_LIBRARY} STATIC
27
 
    ${OICS_SOURCE_FILES}
28
 
    ${TINYXML_SOURCE_FILES})
 
14
    add_library(local_tinyxml STATIC
 
15
        tinyxml.cpp
 
16
        tinyxmlparser.cpp
 
17
        tinyxmlerror.cpp
 
18
        tinystr.cpp
 
19
    )
 
20
    target_link_libraries(oics local_tinyxml)
29
21
endif()
30
 
 
31
 
# Does this do anything?
32
 
link_directories(${CMAKE_CURRENT_BINARY_DIR})