diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2020-08-25 23:34:19 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2020-09-14 12:26:07 +0200 |
commit | f0ac8495872ee078f18bd349e3db6883ed4106e2 (patch) | |
tree | 0f9b609aa80b924f6b391e1c4b687c0f73eaa7b9 /tests/CMakeLists.txt | |
parent | 5ead6f2d2c515d3d85c31fffebea55168c1bc1b4 (diff) | |
download | dlfcn-win32-f0ac8495872ee078f18bd349e3db6883ed4106e2.tar.gz dlfcn-win32-f0ac8495872ee078f18bd349e3db6883ed4106e2.tar.bz2 dlfcn-win32-f0ac8495872ee078f18bd349e3db6883ed4106e2.zip |
Move cmake targets into sub directories
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..64f85f7 --- /dev/null +++ b/tests/CMakeLists.txt | |||
@@ -0,0 +1,12 @@ | |||
1 | enable_testing() | ||
2 | include_directories(../src) | ||
3 | add_library(testdll SHARED testdll.c) | ||
4 | set_target_properties(testdll PROPERTIES PREFIX "") | ||
5 | add_library(testdll2 SHARED testdll2.c) | ||
6 | set_target_properties(testdll2 PROPERTIES PREFIX "") | ||
7 | target_link_libraries(testdll2 dl) | ||
8 | add_library(testdll3 SHARED testdll3.c) | ||
9 | set_target_properties(testdll3 PROPERTIES PREFIX "") | ||
10 | add_executable(t_dlfcn test.c) | ||
11 | target_link_libraries(t_dlfcn dl) | ||
12 | add_test (NAME t_dlfcn COMMAND t_dlfcn) | ||