aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
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 @@
1enable_testing()
2include_directories(../src) 1include_directories(../src)
2
3add_library(testdll SHARED testdll.c) 3add_library(testdll SHARED testdll.c)
4set_target_properties(testdll PROPERTIES PREFIX "") 4set_target_properties(testdll PROPERTIES PREFIX "")
5
5add_library(testdll2 SHARED testdll2.c) 6add_library(testdll2 SHARED testdll2.c)
6set_target_properties(testdll2 PROPERTIES PREFIX "") 7set_target_properties(testdll2 PROPERTIES PREFIX "")
7target_link_libraries(testdll2 dl) 8target_link_libraries(testdll2 dl)
9
8add_library(testdll3 SHARED testdll3.c) 10add_library(testdll3 SHARED testdll3.c)
9set_target_properties(testdll3 PROPERTIES PREFIX "") 11set_target_properties(testdll3 PROPERTIES PREFIX "")
12
10add_executable(t_dlfcn test.c) 13add_executable(t_dlfcn test.c)
11target_link_libraries(t_dlfcn dl) 14target_link_libraries(t_dlfcn dl)
12add_test (NAME t_dlfcn COMMAND t_dlfcn) 15if(RUN_TESTS)
16 add_test(NAME t_dlfcn COMMAND ${WRAPPER} $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>)
17endif()