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
|
Rev | Line | |
---|
[232] | 1 | PROJECT(vrnbridge)
|
---|
| 2 | cmake_minimum_required(VERSION 2.8)
|
---|
[302] | 3 | include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
[232] | 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}
|
---|
[302] | 20 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR}
|
---|
[232] | 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.