source: flair-src/trunk/tools/VrpnBridge/CMakeLists.txt@ 303

Last change on this file since 303 was 302, checked in by Sanahuja Guillaume, 6 years ago

modifs nouveau build system

File size: 843 bytes
RevLine 
[232]1PROJECT(vrnbridge)
2cmake_minimum_required(VERSION 2.8)
[302]3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
[232]4
5if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
6
7include_directories(
8 ${FLAIR_INCLUDE_DIR}
9 ${CMAKE_SYSROOT}/usr/include/vrpn
10)
11
12ADD_EXECUTABLE(${PROJECT_NAME}
13 src/main.cpp
14)
15
16TARGET_LINK_LIBRARIES(${PROJECT_NAME} vrpn)
17
18INSTALL(
19 TARGETS ${PROJECT_NAME}
[302]20 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR}
[232]21)
22
23SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
24
25else()
26 if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
27 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
28 else()
29 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
30 endif()
31endif()
Note: See TracBrowser for help on using the repository browser.