source: flair-src/tags/0.2.0/tools/Controller/DualShock3/CMakeLists.txt@ 267

Last change on this file since 267 was 107, checked in by Sanahuja Guillaume, 8 years ago

m

File size: 885 bytes
Line 
1PROJECT(dualshock3)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
6
7SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
8include(${FLAIR_USE_FILE})
9
10ADD_DEFINITIONS(-fpermissive)
11
12INCLUDE_DIRECTORIES(
13 ${FLAIR_INCLUDE_DIR}
14 ${CMAKE_SOURCE_DIR}/src
15)
16
17LINK_DIRECTORIES (
18 ${FLAIR_LIBRARY_DIR}
19)
20
21ADD_EXECUTABLE(${PROJECT_NAME}
22 src/DualShock3.cpp
23 src/main.cpp
24)
25
26TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT} bluetooth usb)
27
28INSTALL(
29 TARGETS ${PROJECT_NAME}
30 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
31)
32
33SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
34
35else()
36warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
37endif()
Note: See TracBrowser for help on using the repository browser.