diff options
author | Silvio Traversaro <silvio@traversaro.it> | 2020-11-26 11:16:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 11:16:05 +0100 |
commit | 008df693cf5a71b8f1db87731a7b5af87400e5dd (patch) | |
tree | 301d3be6c3cd828b172bdc1c4294fa6f0edc2e04 /tests | |
parent | 0b89999623df30fa96bf2da9a4b16c3e77eb0b57 (diff) | |
parent | 49c3a3379a88922364dafaad9062960a9ef4caee (diff) | |
download | dlfcn-win32-008df693cf5a71b8f1db87731a7b5af87400e5dd.tar.gz dlfcn-win32-008df693cf5a71b8f1db87731a7b5af87400e5dd.tar.bz2 dlfcn-win32-008df693cf5a71b8f1db87731a7b5af87400e5dd.zip |
Merge pull request #85 from rhabacker/cmake-wine-support
Add support to use wine to run cross compiled tests for cmake
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 64f85f7..5fc6c44 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -1,12 +1,17 @@ | |||
1 | enable_testing() | ||
2 | include_directories(../src) | 1 | include_directories(../src) |
2 | |||
3 | add_library(testdll SHARED testdll.c) | 3 | add_library(testdll SHARED testdll.c) |
4 | set_target_properties(testdll PROPERTIES PREFIX "") | 4 | set_target_properties(testdll PROPERTIES PREFIX "") |
5 | |||
5 | add_library(testdll2 SHARED testdll2.c) | 6 | add_library(testdll2 SHARED testdll2.c) |
6 | set_target_properties(testdll2 PROPERTIES PREFIX "") | 7 | set_target_properties(testdll2 PROPERTIES PREFIX "") |
7 | target_link_libraries(testdll2 dl) | 8 | target_link_libraries(testdll2 dl) |
9 | |||
8 | add_library(testdll3 SHARED testdll3.c) | 10 | add_library(testdll3 SHARED testdll3.c) |
9 | set_target_properties(testdll3 PROPERTIES PREFIX "") | 11 | set_target_properties(testdll3 PROPERTIES PREFIX "") |
12 | |||
10 | add_executable(t_dlfcn test.c) | 13 | add_executable(t_dlfcn test.c) |
11 | target_link_libraries(t_dlfcn dl) | 14 | target_link_libraries(t_dlfcn dl) |
12 | add_test (NAME t_dlfcn COMMAND t_dlfcn) | 15 | if(RUN_TESTS) |
16 | add_test(NAME t_dlfcn COMMAND ${WRAPPER} $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>) | ||
17 | endif() | ||