Changeset 302 in flair-src for trunk/lib/FlairSensorActuator
- Timestamp:
- Feb 25, 2019, 4:28:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/CMakeLists.txt
r297 r302 1 1 PROJECT(FlairSensorActuator) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 4 5 find_package(LibXml2 REQUIRED) 6 7 execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion 8 OUTPUT_VARIABLE GCC_VERSION) 9 10 if (GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3) 11 if (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7) 12 ADD_DEFINITIONS("-std=c++11") 13 else() 14 ADD_DEFINITIONS("-std=c++0x") 15 endif() 16 else() 17 message(STATUS "GCC version < 4.3, c+11 is not supported!") 18 endif() 3 include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake) 19 4 20 5 INCLUDE_DIRECTORIES( 21 ${LIBXML2_INCLUDE_DIR}22 6 ${CMAKE_CURRENT_SOURCE_DIR}/src 23 7 ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported … … 28 12 ) 29 13 30 FILE(GLOB S ENSOR_SRC"${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")14 FILE(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") 31 15 32 ADD_LIBRARY(${PROJECT_NAME} 33 ${SENSOR_SRC}16 FLAIR_LIB(${PROJECT_NAME} "${SRC_FILES}" 17 INCLUDES_DEST_DIR ${PROJECT_NAME} 34 18 ) 35 36 INSTALL(TARGETS ${PROJECT_NAME}37 LIBRARY DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}38 ARCHIVE DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}39 )40 41 FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")42 INSTALL(FILES ${files} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/${PROJECT_NAME})43 44 add_custom_target(45 ${PROJECT_NAME}_compile_info46 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.h47 )48 49 add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
Note:
See TracChangeset
for help on using the changeset viewer.