aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2020-11-02 12:50:41 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2020-11-09 09:45:28 +0100
commit3292a13718d18e7dd1b32ececc73b534398872dd (patch)
treedc6a0fc32e84de5af4a83e9f8352116c1bfe3f7d /CMakeLists.txt
parent11c80b8e04feaa7b72cdbada92d5417dce7146dd (diff)
downloaddlfcn-win32-3292a13718d18e7dd1b32ececc73b534398872dd.tar.gz
dlfcn-win32-3292a13718d18e7dd1b32ececc73b534398872dd.tar.bz2
dlfcn-win32-3292a13718d18e7dd1b32ececc73b534398872dd.zip
cmake: Let make target 'test' be accessable from topmost build directory
The cmake command enable_testing() must be placed in the topmost CMakeLists.txt so that the make target 'test' is available in the topmost build directory.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 321cfd1..ab20340 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,5 +16,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
16add_subdirectory(src) 16add_subdirectory(src)
17 17
18if (BUILD_TESTS) 18if (BUILD_TESTS)
19 add_subdirectory(tests) 19 enable_testing()
20 add_subdirectory(tests)
20endif() 21endif()