Changeset 302 in flair-src for trunk/tools
- Timestamp:
- Feb 25, 2019, 4:28:34 PM (6 years ago)
- Location:
- trunk/tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/CMakeLists.txt
r297 r302 1 1 PROJECT(FlairTools) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Controller/DualShock3) -
trunk/tools/Controller/DualShock3/CMakeLists.txt
r107 r302 1 1 PROJECT(dualshock3) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 6 6 7 7 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 8 include(${FLAIR_USE_FILE})9 8 10 9 ADD_DEFINITIONS(-fpermissive) 11 10 12 INCLUDE_DIRECTORIES( 13 ${FLAIR_INCLUDE_DIR} 14 ${CMAKE_SOURCE_DIR}/src 15 ) 16 17 LINK_DIRECTORIES ( 18 ${FLAIR_LIBRARY_DIR} 19 ) 20 21 ADD_EXECUTABLE(${PROJECT_NAME} 11 SET(SRC_FILES 22 12 src/DualShock3.cpp 23 13 src/main.cpp 24 14 ) 25 15 26 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT} bluetooth usb)16 FLAIR_NRT_TOOL(${PROJECT_NAME} "${SRC_FILES}") 27 17 28 INSTALL( 29 TARGETS ${PROJECT_NAME} 30 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR} 31 ) 32 33 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 18 TARGET_LINK_LIBRARIES(${PROJECT_NAME} bluetooth usb) 34 19 35 20 else() -
trunk/tools/Controller/Mavlink/CMakeLists.txt
r107 r302 1 1 PROJECT(MavPlanner) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 6 6 7 include(${FLAIR_USE_FILE})8 9 ADD_DEFINITIONS(-fpermissive)10 11 7 INCLUDE_DIRECTORIES( 12 ${FLAIR_INCLUDE_DIR}13 ${CMAKE_SOURCE_DIR}/src14 8 ${CMAKE_SOURCE_DIR}/src/mavlink_generated_messages/common 15 9 ) … … 17 11 FILE(GLOB MAVPLANNER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") 18 12 19 ADD_EXECUTABLE(${PROJECT_NAME} 20 ${MAVPLANNER_SRC} 21 ) 22 23 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT}) 24 25 INSTALL( 26 TARGETS ${PROJECT_NAME} 27 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR} 28 ) 29 30 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 13 FLAIR_NRT_TOOL(${PROJECT_NAME} "${MAVPLANNER_SRC}") 31 14 32 15 else() -
trunk/tools/Dbt2csv/CMakeLists.txt
r234 r302 1 1 PROJECT(dbt2csv) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") … … 29 29 ../FlairGCS/src/ 30 30 ${QT_INCLUDE_DIR} 31 ${CMAKE_BINARY_DIR}/generated/ 31 32 ) 32 33 … … 40 41 INSTALL( 41 42 TARGETS ${PROJECT_NAME} 42 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair- bin/tools/${ARCH_DIR}43 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/tools/${ARCH_DIR} 43 44 ) 44 45 45 46 add_custom_target( 46 47 compile_info 47 COMMAND $ENV{FLAIR_ROOT}/flair- dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h48 COMMAND $ENV{FLAIR_ROOT}/flair-src/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/generated/compile_info.h 48 49 ) 49 50 -
trunk/tools/FlairGCS/CMakeLists.txt
r297 r302 1 1 PROJECT(flairgcs) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") … … 65 65 ${CMAKE_SYSROOT}/usr/include/qt4/QtMobility 66 66 ${CMAKE_SYSROOT}/usr/include/qt4/QtLocation 67 ${CMAKE_BINARY_DIR}/generated/ 67 68 ) 68 69 … … 76 77 INSTALL( 77 78 TARGETS ${PROJECT_NAME} 78 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair- bin/tools/${ARCH_DIR}79 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR} 79 80 ) 80 81 81 82 add_custom_target( 82 83 ${PROJECT_NAME}_compile_info 83 COMMAND $ENV{FLAIR_ROOT}/flair- dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h84 COMMAND $ENV{FLAIR_ROOT}/flair-src/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/generated/compile_info.h 84 85 ) 85 86 -
trunk/tools/VrpnBridge/CMakeLists.txt
r232 r302 1 1 PROJECT(vrnbridge) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair- dev/cmake-modules/GlobalCmakeFlair.cmake)3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 4 4 5 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") … … 18 18 INSTALL( 19 19 TARGETS ${PROJECT_NAME} 20 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair- bin/tools/${ARCH_DIR}20 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-install/bin/tools/${ARCH_DIR} 21 21 ) 22 22
Note:
See TracChangeset
for help on using the changeset viewer.