aboutsummaryrefslogtreecommitdiff
path: root/cmake-test
diff options
context:
space:
mode:
authorSilvio <silvio.traversaro@iit.it>2017-03-05 16:48:00 +0100
committerSilvio <silvio.traversaro@iit.it>2017-03-05 17:09:23 +0100
commitd22f7719cb6a610be6cc20cbfbb79698177360cd (patch)
tree5eaf7a4bd401fc600047a7bf0b792f49fb67a702 /cmake-test
parente32762ce3ccbd10af00fed78995fb442931e55bb (diff)
downloaddlfcn-win32-d22f7719cb6a610be6cc20cbfbb79698177360cd.tar.gz
dlfcn-win32-d22f7719cb6a610be6cc20cbfbb79698177360cd.tar.bz2
dlfcn-win32-d22f7719cb6a610be6cc20cbfbb79698177360cd.zip
Add testing of CMake exported targets
Diffstat (limited to 'cmake-test')
-rw-r--r--cmake-test/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake-test/CMakeLists.txt b/cmake-test/CMakeLists.txt
new file mode 100644
index 0000000..532f2b8
--- /dev/null
+++ b/cmake-test/CMakeLists.txt
@@ -0,0 +1,14 @@
1# Simple CMake project to test the use of dlfcn-win32
2# imported target. The test compiled is the same compiled
3# as part of the main dlfcn-win32 project
4
5cmake_minimum_required(VERSION 3.0)
6
7find_package(dlfcn-win32 REQUIRED)
8
9add_library(testdll SHARED ../testdll.c)
10set_target_properties(testdll PROPERTIES PREFIX "")
11add_executable(t_dlfcn ../test.c)
12target_link_libraries(t_dlfcn dlfcn-win32::dl)
13enable_testing()
14add_test(NAME t_dlfcn COMMAND t_dlfcn)