diff options
Diffstat (limited to 'cmake-test/CMakeLists.txt')
-rw-r--r-- | cmake-test/CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmake-test/CMakeLists.txt b/cmake-test/CMakeLists.txt index 659a79a..b191317 100644 --- a/cmake-test/CMakeLists.txt +++ b/cmake-test/CMakeLists.txt | |||
@@ -1,19 +1,20 @@ | |||
1 | # Simple CMake project to test the use of dlfcn-win32 | 1 | # Simple CMake project to test the use of dlfcn-win32 |
2 | # imported target. The test compiled is the same compiled | 2 | # imported target. The test compiled is the same compiled |
3 | # as part of the main dlfcn-win32 project | 3 | # as part of the main dlfcn-win32 project |
4 | project(dlfcn-win32-test) | ||
4 | 5 | ||
5 | cmake_minimum_required(VERSION 3.0) | 6 | cmake_minimum_required(VERSION 3.0) |
6 | 7 | ||
7 | find_package(dlfcn-win32 REQUIRED) | 8 | find_package(dlfcn-win32 REQUIRED) |
8 | 9 | ||
9 | add_library(testdll SHARED ../testdll.c) | 10 | add_library(testdll SHARED ../tests/testdll.c) |
10 | set_target_properties(testdll PROPERTIES PREFIX "") | 11 | set_target_properties(testdll PROPERTIES PREFIX "") |
11 | add_library(testdll2 SHARED ../testdll2.c) | 12 | add_library(testdll2 SHARED ../tests/testdll2.c) |
12 | set_target_properties(testdll2 PROPERTIES PREFIX "") | 13 | set_target_properties(testdll2 PROPERTIES PREFIX "") |
13 | target_link_libraries(testdll2 dlfcn-win32::dl) | 14 | target_link_libraries(testdll2 dlfcn-win32::dl) |
14 | add_library(testdll3 SHARED ../testdll3.c) | 15 | add_library(testdll3 SHARED ../tests/testdll3.c) |
15 | set_target_properties(testdll3 PROPERTIES PREFIX "") | 16 | set_target_properties(testdll3 PROPERTIES PREFIX "") |
16 | add_executable(t_dlfcn ../test.c) | 17 | add_executable(t_dlfcn ../tests/test.c) |
17 | target_link_libraries(t_dlfcn dlfcn-win32::dl) | 18 | target_link_libraries(t_dlfcn dlfcn-win32::dl) |
18 | enable_testing() | 19 | enable_testing() |
19 | add_test(NAME t_dlfcn COMMAND t_dlfcn) | 20 | add_test(NAME t_dlfcn COMMAND t_dlfcn) |