aboutsummaryrefslogtreecommitdiff
path: root/cmake-test/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cmake-test/CMakeLists.txt')
-rw-r--r--cmake-test/CMakeLists.txt9
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
4project(dlfcn-win32-test)
4 5
5cmake_minimum_required(VERSION 3.0) 6cmake_minimum_required(VERSION 3.0)
6 7
7find_package(dlfcn-win32 REQUIRED) 8find_package(dlfcn-win32 REQUIRED)
8 9
9add_library(testdll SHARED ../testdll.c) 10add_library(testdll SHARED ../tests/testdll.c)
10set_target_properties(testdll PROPERTIES PREFIX "") 11set_target_properties(testdll PROPERTIES PREFIX "")
11add_library(testdll2 SHARED ../testdll2.c) 12add_library(testdll2 SHARED ../tests/testdll2.c)
12set_target_properties(testdll2 PROPERTIES PREFIX "") 13set_target_properties(testdll2 PROPERTIES PREFIX "")
13target_link_libraries(testdll2 dlfcn-win32::dl) 14target_link_libraries(testdll2 dlfcn-win32::dl)
14add_library(testdll3 SHARED ../testdll3.c) 15add_library(testdll3 SHARED ../tests/testdll3.c)
15set_target_properties(testdll3 PROPERTIES PREFIX "") 16set_target_properties(testdll3 PROPERTIES PREFIX "")
16add_executable(t_dlfcn ../test.c) 17add_executable(t_dlfcn ../tests/test.c)
17target_link_libraries(t_dlfcn dlfcn-win32::dl) 18target_link_libraries(t_dlfcn dlfcn-win32::dl)
18enable_testing() 19enable_testing()
19add_test(NAME t_dlfcn COMMAND t_dlfcn) 20add_test(NAME t_dlfcn COMMAND t_dlfcn)