aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2020-11-02 12:37:36 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2020-11-02 12:47:35 +0100
commit11c80b8e04feaa7b72cdbada92d5417dce7146dd (patch)
tree4aeeacc79b3ea3d93ecd274c9400908c6a4aba90 /CMakeLists.txt
parentd640d80f976efb82758408c6add6ea80f2f71e33 (diff)
downloaddlfcn-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.txt4
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)
9option(BUILD_SHARED_LIBS "shared/static libs" ON) 9option(BUILD_SHARED_LIBS "shared/static libs" ON)
10option(BUILD_TESTS "tests?" OFF) 10option(BUILD_TESTS "tests?" OFF)
11 11
12set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
13set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
14set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
15
12add_subdirectory(src) 16add_subdirectory(src)
13 17
14if (BUILD_TESTS) 18if (BUILD_TESTS)