Add: Set application name for SDL2 (#13061)
[openttd-github.git] / regression / CMakeLists.txt
blob340e29c2d9ca31cbd4bca0d57ae4af024aa41e89
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"
9     )
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
15             DEPENDS
16             ${CMAKE_BINARY_DIR}/regression/regression.cfg
17     )
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)