Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/src/external/wiicpp/wiic/CMakeLists.txt @ 10233

Last change on this file since 10233 was 9780, checked in by georgr, 11 years ago

WiiCpp library successfully (?) added - won't work without libbluetooth-dev

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1FILE(GLOB WIIC_SOURCES "*.c")
2
3IF(APPLE)
4        FOREACH(WIIC_SOURCE ${WIIC_SOURCES})
5                STRING(REGEX REPLACE ".io_nix.c" "" WIIC_SOURCE ${WIIC_SOURCE})
6                SET(WIIC_MAC_SOURCES ${WIIC_MAC_SOURCES} "${WIIC_SOURCE}")
7        ENDFOREACH(WIIC_SOURCE)
8        SET(WIIC_MAC_SOURCES ${WIIC_MAC_SOURCES} "io_mac.m")
9        SET(WIIC_SOURCES ${WIIC_MAC_SOURCES})
10ENDIF(APPLE)
11
12#ADD_LIBRARY(wiic SHARED ${WIIC_SOURCES})
13#IF(LINUX)
14#       TARGET_LINK_LIBRARIES(wiic ${BLUETOOTH_LIBRARY} m pthread)
15#ENDIF(LINUX)
16#IF(APPLE)
17#       TARGET_LINK_LIBRARIES(wiic "-framework IOBluetooth -framework Foundation -framework CoreFoundation")
18#ENDIF(APPLE)
19
20ORXONOX_ADD_LIBRARY(wiic_orxonox
21  ORXONOX_EXTERNAL
22  NO_DLL_INTERFACE
23  VERSION
24    1.1
25  LINK_LIBRARIES
26    ${BLUETOOTH_LIBRARY}
27    m
28  SOURCE_FILES
29    ${WIIC_SOURCES}
30       
31)
32
33
34#INSTALL(TARGETS        wiic DESTINATION /usr/local/lib)
35INSTALL(FILES wiic.h DESTINATION /usr/local/include/wiic)
36INSTALL(FILES wiic_functions.h DESTINATION /usr/local/include/wiic)
37INSTALL(FILES wiic_macros.h DESTINATION /usr/local/include/wiic)
38INSTALL(FILES wiic_structs.h DESTINATION /usr/local/include/wiic)
Note: See TracBrowser for help on using the repository browser.