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 | |
---|
1 | PROJECT(vrnbridge)
|
---|
2 | cmake_minimum_required(VERSION 2.8)
|
---|
3 | include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
4 |
|
---|
5 | if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
|
---|
6 |
|
---|
7 | include_directories(
|
---|
8 | ${FLAIR_INCLUDE_DIR}
|
---|
9 | ${CMAKE_SYSROOT}/usr/include/vrpn
|
---|
10 | )
|
---|
11 |
|
---|
12 | ADD_EXECUTABLE(${PROJECT_NAME}
|
---|
13 | src/main.cpp
|
---|
14 | )
|
---|
15 |
|
---|
16 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} vrpn)
|
---|
17 |
|
---|
18 | INSTALL(
|
---|
19 | TARGETS ${PROJECT_NAME}
|
---|
20 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR}
|
---|
21 | )
|
---|
22 |
|
---|
23 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
24 |
|
---|
25 | else()
|
---|
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()
|
---|
31 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.