Changeset 301 in flair-src


Ignore:
Timestamp:
Feb 7, 2019, 4:26:43 PM (21 months ago)
Author:
Sanahuja Guillaume
Message:

add demos resources

Location:
trunk/demos
Files:
115 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/CircleFollower/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
     7SET(COPY_RESOURCE_FILES true)
    78
    89include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3334INSTALL(
    3435        TARGETS ${PROJECT_NAME}_rt
    35         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/CircleFollower
     36        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3637)
    3738
    3839INSTALL(
    3940        TARGETS ${PROJECT_NAME}_nrt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/CircleFollower
     41        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4142)
  • trunk/demos/CircleFollower/uav/CMakeLists.txt

    r299 r301  
    88SET(FLAIR_USE_META TRUE)
    99SET(FLAIR_USE_VRPN TRUE)
     10SET(COPY_RESOURCE_FILES true)
    1011
    1112include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3738INSTALL(
    3839        TARGETS ${PROJECT_NAME}_rt
    39         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/CircleFollower
     40        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4041)
    4142
    4243INSTALL(
    4344        TARGETS ${PROJECT_NAME}_nrt
    44         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/CircleFollower
     45        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4546)
  • trunk/demos/Gps/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
     7SET(COPY_RESOURCE_FILES true)
    78
    89include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3334INSTALL(
    3435        TARGETS ${PROJECT_NAME}_rt
    35         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/Gps
     36        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3637)
    3738
    3839INSTALL(
    3940        TARGETS ${PROJECT_NAME}_nrt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/Gps
     41        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4142)
  • trunk/demos/Gps/uav/CMakeLists.txt

    r299 r301  
    1 PROJECT(DemoGps)
     1PROJECT(Gps)
    22cmake_minimum_required(VERSION 2.8)
    33
     
    77SET(FLAIR_USE_VISION_FILTER TRUE)
    88SET(FLAIR_USE_META TRUE)
     9SET(COPY_RESOURCE_FILES true)
    910
    1011include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3738INSTALL(
    3839        TARGETS ${PROJECT_NAME}_rt
    39         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/Gps
     40        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4041)
    4142
    4243INSTALL(
    4344        TARGETS ${PROJECT_NAME}_nrt
    44         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/Gps
     45        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4546)
  • trunk/demos/MixedReality/real/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
     7SET(COPY_RESOURCE_FILES true)
    78
    89include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3536INSTALL(
    3637        TARGETS ${PROJECT_NAME}_rt
    37         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
     38        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3839)
    3940
    4041INSTALL(
    4142        TARGETS ${PROJECT_NAME}_nrt
    42         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
     43        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4344)
    4445
  • trunk/demos/MixedReality/real/uav/CMakeLists.txt

    r299 r301  
    88SET(FLAIR_USE_META TRUE)
    99SET(FLAIR_USE_VRPN TRUE)
     10SET(COPY_RESOURCE_FILES true)
    1011
    1112include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3738INSTALL(
    3839        TARGETS ${PROJECT_NAME}_rt
    39         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
     40        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4041)
    4142
    4243INSTALL(
    4344        TARGETS ${PROJECT_NAME}_nrt
    44         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/real
     45        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4546)
  • trunk/demos/MixedReality/virtual/simulator/CMakeLists.txt

    r299 r301  
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
    77SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
     8SET(COPY_RESOURCE_FILES true)
    89
    910include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3637INSTALL(
    3738        TARGETS ${PROJECT_NAME}_rt
    38         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/virtual
     39        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3940)
    4041
    4142INSTALL(
    4243        TARGETS ${PROJECT_NAME}_nrt
    43         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/MixedReality/virtual
     44        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4445)
    4546
  • trunk/demos/MixedReality/virtual/uav/CMakeLists.txt

    r297 r301  
    88SET(FLAIR_USE_META TRUE)
    99SET(FLAIR_USE_VRPN TRUE)
     10SET(COPY_RESOURCE_FILES true)
    1011
    1112include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
    1213include(${FLAIR_USE_FILE})
     14
     15if("${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "core2-64")
    1316
    1417SET(SRC_FILES
     
    3437
    3538TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT})
     39
     40INSTALL(
     41        TARGETS ${PROJECT_NAME}_rt
     42        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
     43)
     44
     45INSTALL(
     46        TARGETS ${PROJECT_NAME}_nrt
     47        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
     48)
     49
     50else()
     51    if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
     52        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
     53    else()
     54        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
     55    endif()
     56endif()
  • trunk/demos/OpticalFlow/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
    7 #SET(FLAIR_USE_VISION_FILTER TRUE)
     7SET(COPY_RESOURCE_FILES true)
    88
    99include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3838INSTALL(
    3939        TARGETS ${PROJECT_NAME}_rt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
     40        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4141)
    4242
    4343INSTALL(
    4444        TARGETS ${PROJECT_NAME}_nrt
    45         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
     45        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4646)
  • trunk/demos/OpticalFlow/uav/CMakeLists.txt

    r299 r301  
    1010SET(FLAIR_USE_VISION_FILTER TRUE)
    1111SET(FLAIR_USE_META TRUE)
     12SET(COPY_RESOURCE_FILES true)
    1213
    1314include(${FLAIR_USE_FILE})
     
    3839INSTALL(
    3940        TARGETS ${PROJECT_NAME}_rt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
     41        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4142)
    4243
    4344INSTALL(
    4445        TARGETS ${PROJECT_NAME}_nrt
    45         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/OpticalFlow
     46        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4647)
    4748
  • trunk/demos/PidStandalone/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
     7SET(COPY_RESOURCE_FILES true)
    78
    89include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
    910include(${FLAIR_USE_FILE})
     11
    1012
    1113SET(SRC_FILES
     
    3335INSTALL(
    3436        TARGETS ${PROJECT_NAME}_rt
    35         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/PidStandalone
     37        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3638)
    3739
    3840INSTALL(
    3941        TARGETS ${PROJECT_NAME}_nrt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/PidStandalone
     42        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4143)
    4244
  • trunk/demos/PidStandalone/uav/CMakeLists.txt

    r299 r301  
    77SET(FLAIR_USE_VISION_FILTER TRUE)
    88SET(FLAIR_USE_META TRUE)
     9SET(COPY_RESOURCE_FILES true)
    910
    1011include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3637INSTALL(
    3738        TARGETS ${PROJECT_NAME}_rt
    38         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/PidStandalone
     39        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3940)
    4041
    4142INSTALL(
    4243        TARGETS ${PROJECT_NAME}_nrt
    43         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/PidStandalone
     44        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4445)
  • trunk/demos/SimpleFleet/simulator/CMakeLists.txt

    r299 r301  
    55SET(FLAIR_USE_SIMULATOR TRUE)
    66SET(FLAIR_USE_SIMULATOR_GL TRUE)
     7SET(COPY_RESOURCE_FILES true)
    78
    89include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3334INSTALL(
    3435        TARGETS ${PROJECT_NAME}_rt
    35         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/SimpleFleet
     36        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    3637)
    3738
    3839INSTALL(
    3940        TARGETS ${PROJECT_NAME}_nrt
    40         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/SimpleFleet
     41        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4142)
  • trunk/demos/SimpleFleet/uav/CMakeLists.txt

    r299 r301  
    88SET(FLAIR_USE_META TRUE)
    99SET(FLAIR_USE_VRPN TRUE)
     10SET(COPY_RESOURCE_FILES true)
    1011
    1112include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     
    3738INSTALL(
    3839        TARGETS ${PROJECT_NAME}_rt
    39         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/SimpleFleet
     40        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4041)
    4142
    4243INSTALL(
    4344        TARGETS ${PROJECT_NAME}_nrt
    44         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/SimpleFleet
     45        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/demos/${ARCH_DIR}/${PROJECT_NAME}
    4546)
  • trunk/demos/Sinus/CMakeLists.txt

    r299 r301  
    44SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    55SET(FLAIR_USE_FILTER TRUE)
     6SET(COPY_RESOURCE_FILES true)
    67
    78include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
Note: See TracChangeset for help on using the changeset viewer.