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

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

modifs nouveau build system

File size: 843 bytes
Line 
1PROJECT(vrnbridge)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
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}
20 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR}
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.