diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-02 12:37:36 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-02 12:47:35 +0100 |
commit | 11c80b8e04feaa7b72cdbada92d5417dce7146dd (patch) | |
tree | 4aeeacc79b3ea3d93ecd274c9400908c6a4aba90 /CMakeLists.txt | |
parent | d640d80f976efb82758408c6add6ea80f2f71e33 (diff) | |
download | dlfcn-win32-11c80b8e04feaa7b72cdbada92d5417dce7146dd.tar.gz dlfcn-win32-11c80b8e04feaa7b72cdbada92d5417dce7146dd.tar.bz2 dlfcn-win32-11c80b8e04feaa7b72cdbada92d5417dce7146dd.zip |
cmake: place all generated binaries into one place
This is required for running test applications, because by default cmake
places binaries into the associated subdir.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 17d3fc4..321cfd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -9,6 +9,10 @@ project (dlfcn-win32 C) | |||
9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) | 9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) |
10 | option(BUILD_TESTS "tests?" OFF) | 10 | option(BUILD_TESTS "tests?" OFF) |
11 | 11 | ||
12 | set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
13 | set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
14 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
15 | |||
12 | add_subdirectory(src) | 16 | add_subdirectory(src) |
13 | 17 | ||
14 | if (BUILD_TESTS) | 18 | if (BUILD_TESTS) |