File: CMakeLists.txt

package info (click to toggle)
kadu 4.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 54,532 kB
  • sloc: cpp: 128,331; sh: 988; awk: 105; makefile: 75
file content (11 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
option (ENABLE_TESTS "Enable tests" ON)

if (ENABLE_TESTS)
	add_custom_target (all_tests ALL DEPENDS kadu ${COMPILE_PLUGINS} ${UNIT_TEST_TARGETS})
	add_custom_command (
		TARGET all_tests
		COMMENT "Run tests"
		POST_BUILD COMMAND ctest ARGS --output-on-failure
		WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
	)
endif (ENABLE_TESTS)