Making GTSAM_BUILD_EXAMPLES flag affect unstable examples
parent
fd80a9da90
commit
8af4581139
|
@ -23,7 +23,8 @@ 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)
|
||||||
|
foreach(example schedulingExample schedulingQuals12)
|
||||||
add_executable(${example} "examples/${example}.cpp")
|
add_executable(${example} "examples/${example}.cpp")
|
||||||
|
|
||||||
# Disable building during make all/install
|
# Disable building during make all/install
|
||||||
|
@ -36,5 +37,5 @@ foreach(example schedulingExample schedulingQuals12)
|
||||||
add_dependencies(${example} gtsam-static gtsam_unstable-static)
|
add_dependencies(${example} gtsam-static gtsam_unstable-static)
|
||||||
target_link_libraries(${example} gtsam-static gtsam_unstable-static)
|
target_link_libraries(${example} gtsam-static gtsam_unstable-static)
|
||||||
add_custom_target(${example}.run ${EXECUTABLE_OUTPUT_PATH}${example} ${ARGN})
|
add_custom_target(${example}.run ${EXECUTABLE_OUTPUT_PATH}${example} ${ARGN})
|
||||||
endforeach(example)
|
endforeach(example)
|
||||||
|
endif (GTSAM_BUILD_EXAMPLES)
|
||||||
|
|
Loading…
Reference in New Issue