diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-02 12:50:41 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-09 09:45:28 +0100 |
commit | 3292a13718d18e7dd1b32ececc73b534398872dd (patch) | |
tree | dc6a0fc32e84de5af4a83e9f8352116c1bfe3f7d /CMakeLists.txt | |
parent | 11c80b8e04feaa7b72cdbada92d5417dce7146dd (diff) | |
download | dlfcn-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.txt | 3 |
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) | |||
16 | add_subdirectory(src) | 16 | add_subdirectory(src) |
17 | 17 | ||
18 | if (BUILD_TESTS) | 18 | if (BUILD_TESTS) |
19 | add_subdirectory(tests) | 19 | enable_testing() |
20 | add_subdirectory(tests) | ||
20 | endif() | 21 | endif() |