1 # Copy the regression configuration in a special folder, so all autogenerated
2 # folders end up in the same place after running regression.
3 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/regression.cfg
4 COMMAND ${CMAKE_COMMAND} -E copy
5 ${CMAKE_CURRENT_SOURCE_DIR}/regression.cfg
6 ${CMAKE_CURRENT_BINARY_DIR}/regression.cfg
7 MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/regression.cfg
8 COMMENT "Copying regression.cfg regression file"
11 # Create a new target which copies all regression files
12 # Subdirectory targets will add themselves as dependencies
13 add_custom_target(regression_files
14 ALL # this is needed because 'make test' doesn't resolve dependencies, and otherwise this is never executed
16 ${CMAKE_BINARY_DIR}/regression/regression.cfg
19 # Create a new target which runs the regression
20 # Subdirectory targets will add themselves as dependencies
21 add_custom_target(regression)
23 add_subdirectory(regression)
24 add_subdirectory(stationlist)