cmake: Group test targets into tests folder in IDEs

This simplifies fish project as shown in IDEs. No change to command line
build systems.
This commit is contained in:
ridiculousfish 2021-09-20 12:51:24 -07:00
parent 1d7036d19f
commit 0a277bf8c3

View file

@ -8,6 +8,9 @@ if(NOT CTEST_PARALLEL_LEVEL)
set(CTEST_PARALLEL_LEVEL ${CORES})
endif()
# Put in a tests folder to reduce the top level targets in IDEs.
set(CMAKE_FOLDER tests)
# We will use 125 as a reserved exit code to indicate that a test has been skipped, i.e. it did not
# pass but it should not be considered a failed test run, either.
set(SKIP_RETURN_CODE 125)