aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index be1c359..35b6931 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,11 +1,15 @@
1include_directories(../src) 1include_directories(../src)
2
2add_library(testdll SHARED testdll.c) 3add_library(testdll SHARED testdll.c)
3set_target_properties(testdll PROPERTIES PREFIX "") 4set_target_properties(testdll PROPERTIES PREFIX "")
5
4add_library(testdll2 SHARED testdll2.c) 6add_library(testdll2 SHARED testdll2.c)
5set_target_properties(testdll2 PROPERTIES PREFIX "") 7set_target_properties(testdll2 PROPERTIES PREFIX "")
6target_link_libraries(testdll2 dl) 8target_link_libraries(testdll2 dl)
9
7add_library(testdll3 SHARED testdll3.c) 10add_library(testdll3 SHARED testdll3.c)
8set_target_properties(testdll3 PROPERTIES PREFIX "") 11set_target_properties(testdll3 PROPERTIES PREFIX "")
12
9add_executable(t_dlfcn test.c) 13add_executable(t_dlfcn test.c)
10target_link_libraries(t_dlfcn dl) 14target_link_libraries(t_dlfcn dl)
11add_test(NAME t_dlfcn COMMAND $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>) 15add_test(NAME t_dlfcn COMMAND $<TARGET_FILE:t_dlfcn> WORKING_DIRECTORY $<TARGET_FILE_DIR:t_dlfcn>)