Changeset 297 in flair-src for trunk/lib


Ignore:
Timestamp:
Jan 28, 2019, 5:22:21 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

going to out of source build

Location:
trunk/lib
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/CMakeLists.txt

    r273 r297  
    2828)
    2929
    30 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    31 
    3230add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nrt)
    3331if(NOT WIN32)
     
    3634
    3735add_custom_target(
    38         compile_info
     36        ${PROJECT_NAME}_compile_info
    3937        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.h
    4038)
    4139
    42 add_dependencies(FlairCore_rt compile_info)
    43 add_dependencies(FlairCore_nrt compile_info)
     40add_dependencies(FlairCore_rt ${PROJECT_NAME}_compile_info)
     41add_dependencies(FlairCore_nrt ${PROJECT_NAME}_compile_info)
  • trunk/lib/FlairFilter/CMakeLists.txt

    r273 r297  
    4343INSTALL(FILES ${HEADER_FILES} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/${PROJECT_NAME})
    4444
    45 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    46 
    4745add_custom_target(
    48         compile_info
     46        ${PROJECT_NAME}_compile_info
    4947        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.h
    5048)
    5149
    52 add_dependencies(${PROJECT_NAME} compile_info)
     50add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
  • trunk/lib/FlairMeta/CMakeLists.txt

    r273 r297  
    4343INSTALL(FILES ${HEADER_FILES} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/${PROJECT_NAME})
    4444
    45 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    46 
    4745add_custom_target(
    48         compile_info
     46        ${PROJECT_NAME}_compile_info
    4947        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.h
    5048)
    5149
    52 add_dependencies(${PROJECT_NAME} compile_info)
     50add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
  • trunk/lib/FlairSensorActuator/CMakeLists.txt

    r273 r297  
    3030FILE(GLOB SENSOR_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
    3131
    32 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    33 
    3432ADD_LIBRARY(${PROJECT_NAME}
    3533        ${SENSOR_SRC}
     
    4543
    4644add_custom_target(
    47         compile_info
     45        ${PROJECT_NAME}_compile_info
    4846        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.h
    4947)
    5048
    51 add_dependencies(${PROJECT_NAME} compile_info)
     49add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
  • trunk/lib/FlairSimulator/CMakeLists.txt

    r273 r297  
    3131FILE(GLOB SIMU_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
    3232
    33 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    34 
    3533add_custom_target(
    36         compile_info
     34        ${PROJECT_NAME}_compile_info
    3735        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.h
    3836)
    3937
    4038add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/no_gl)
    41 add_dependencies(FlairSimulator_nogl compile_info)
     39add_dependencies(FlairSimulator_nogl ${PROJECT_NAME}_compile_info)
    4240if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
    4341add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gl)
    44 add_dependencies(FlairSimulator_gl compile_info)
     42add_dependencies(FlairSimulator_gl ${PROJECT_NAME}_compile_info)
    4543endif()
  • trunk/lib/FlairVisionFilter/CMakeLists.txt

    r273 r297  
    3131FILE(GLOB SRC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
    3232
    33 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    34 
    3533ADD_LIBRARY(${PROJECT_NAME}
    3634        ${SRC_SRC}
     
    4644
    4745add_custom_target(
    48         compile_info
     46        ${PROJECT_NAME}_compile_info
    4947        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.h
    5048)
    5149
    52 add_dependencies(${PROJECT_NAME} compile_info)
     50add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
    5351
    5452else()
Note: See TracChangeset for help on using the changeset viewer.