Making GTSAM_BUILD_EXAMPLES flag affect unstable examples
parent
fd80a9da90
commit
8af4581139
|
@ -23,18 +23,19 @@ set (discrete_excluded_tests "")
|
||||||
gtsam_add_subdir_tests(discrete_unstable "${discrete_local_libs}" "${discrete_full_libs}" "${discrete_excluded_tests}")
|
gtsam_add_subdir_tests(discrete_unstable "${discrete_local_libs}" "${discrete_full_libs}" "${discrete_excluded_tests}")
|
||||||
|
|
||||||
# add examples
|
# add examples
|
||||||
foreach(example schedulingExample schedulingQuals12)
|
if (GTSAM_BUILD_EXAMPLES)
|
||||||
add_executable(${example} "examples/${example}.cpp")
|
foreach(example schedulingExample schedulingQuals12)
|
||||||
|
add_executable(${example} "examples/${example}.cpp")
|
||||||
# Disable building during make all/install
|
|
||||||
if (GTSAM_ENABLE_INSTALL_EXAMPLE_FIX)
|
# Disable building during make all/install
|
||||||
set_target_properties(${example} PROPERTIES EXCLUDE_FROM_ALL ON)
|
if (GTSAM_ENABLE_INSTALL_EXAMPLE_FIX)
|
||||||
endif()
|
set_target_properties(${example} PROPERTIES EXCLUDE_FROM_ALL ON)
|
||||||
|
endif()
|
||||||
add_dependencies(examples ${example})
|
|
||||||
|
add_dependencies(examples ${example})
|
||||||
add_dependencies(${example} gtsam-static gtsam_unstable-static)
|
|
||||||
target_link_libraries(${example} gtsam-static gtsam_unstable-static)
|
add_dependencies(${example} gtsam-static gtsam_unstable-static)
|
||||||
add_custom_target(${example}.run ${EXECUTABLE_OUTPUT_PATH}${example} ${ARGN})
|
target_link_libraries(${example} gtsam-static gtsam_unstable-static)
|
||||||
endforeach(example)
|
add_custom_target(${example}.run ${EXECUTABLE_OUTPUT_PATH}${example} ${ARGN})
|
||||||
|
endforeach(example)
|
||||||
|
endif (GTSAM_BUILD_EXAMPLES)
|
||||||
|
|
Loading…
Reference in New Issue