on xenial help sign in
added split autopilot targets
commitc045f607d25de5f862d96b6b7291fba16483f10f authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 10 Jul 2013, 15:45 (13 years ago) parent85ca338
1 file changed+6−3
cmake/modules/autopilot.cmake+6−3
cmake/modules/autopilot.cmake+6−3
@@ -1,7 +1,10 @@
11add_custom_target(autopilot)
22
33function(declare_autopilot_test TEST_NAME WORKING_DIR)
4− add_custom_command(TARGET autopilot
5− COMMAND autopilot run ${TEST_NAME}
6− WORKING_DIRECTORY ${WORKING_DIR})
4+ add_custom_target(autopilot-${TEST_NAME}
5+ COMMAND autopilot run ${TEST_NAME}
6+ WORKING_DIRECTORY ${WORKING_DIR}
7+ )
8+
9+ add_dependencies(autopilot autopilot-${TEST_NAME})
710endfunction()