diff options
| author | Silvio Traversaro <pegua1@gmail.com> | 2017-03-10 00:02:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-10 00:02:02 +0100 |
| commit | e37edf0e894c0db8c09b2aed3a3ef7504d56baf4 (patch) | |
| tree | 5eaf7a4bd401fc600047a7bf0b792f49fb67a702 /cmake-test | |
| parent | ad70f0eba0b3029d896d4ffbdf06a5e1793ee3dc (diff) | |
| parent | d22f7719cb6a610be6cc20cbfbb79698177360cd (diff) | |
| download | dlfcn-win32-1.1.0.tar.gz dlfcn-win32-1.1.0.tar.bz2 dlfcn-win32-1.1.0.zip | |
Merge pull request #29 from traversaro/add-appveyorv1.1.0
Fix tests in Visual Studio 2015 and add AppVeyor support
Diffstat (limited to 'cmake-test')
| -rw-r--r-- | cmake-test/CMakeLists.txt | 14 |
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 | |||
| 5 | cmake_minimum_required(VERSION 3.0) | ||
| 6 | |||
| 7 | find_package(dlfcn-win32 REQUIRED) | ||
| 8 | |||
| 9 | add_library(testdll SHARED ../testdll.c) | ||
| 10 | set_target_properties(testdll PROPERTIES PREFIX "") | ||
| 11 | add_executable(t_dlfcn ../test.c) | ||
| 12 | target_link_libraries(t_dlfcn dlfcn-win32::dl) | ||
| 13 | enable_testing() | ||
| 14 | add_test(NAME t_dlfcn COMMAND t_dlfcn) | ||
