diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-03 10:45:36 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2020-11-09 09:45:34 +0100 |
commit | 53b1d71abe1c9d7c43eb68b91a0e94a27b948cdf (patch) | |
tree | 623eb905c619a07af5552eff5a9e3deae80c9a8e /tests | |
parent | 3292a13718d18e7dd1b32ececc73b534398872dd (diff) | |
download | dlfcn-win32-53b1d71abe1c9d7c43eb68b91a0e94a27b948cdf.tar.gz dlfcn-win32-53b1d71abe1c9d7c43eb68b91a0e94a27b948cdf.tar.bz2 dlfcn-win32-53b1d71abe1c9d7c43eb68b91a0e94a27b948cdf.zip |
cmake: separate targets in tests subdir for reasier reading
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index be1c359..35b6931 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -1,11 +1,15 @@ | |||
1 | include_directories(../src) | 1 | include_directories(../src) |
2 | |||
2 | add_library(testdll SHARED testdll.c) | 3 | add_library(testdll SHARED testdll.c) |
3 | set_target_properties(testdll PROPERTIES PREFIX "") | 4 | set_target_properties(testdll PROPERTIES PREFIX "") |
5 | |||
4 | add_library(testdll2 SHARED testdll2.c) | 6 | add_library(testdll2 SHARED testdll2.c) |
5 | set_target_properties(testdll2 PROPERTIES PREFIX "") | 7 | set_target_properties(testdll2 PROPERTIES PREFIX "") |
6 | target_link_libraries(testdll2 dl) | 8 | target_link_libraries(testdll2 dl) |
9 | |||
7 | add_library(testdll3 SHARED testdll3.c) | 10 | add_library(testdll3 SHARED testdll3.c) |
8 | set_target_properties(testdll3 PROPERTIES PREFIX "") | 11 | set_target_properties(testdll3 PROPERTIES PREFIX "") |
12 | |||
9 | add_executable(t_dlfcn test.c) | 13 | add_executable(t_dlfcn test.c) |
10 | target_link_libraries(t_dlfcn dl) | 14 | target_link_libraries(t_dlfcn dl) |
11 | add_test(NAME t_dlfcn COMMAND $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>) | 15 | add_test(NAME t_dlfcn COMMAND $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>) |