diff options
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1dbec48..cf8c60a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -7,7 +7,6 @@ endif () | |||
7 | project (dlfcn C) | 7 | project (dlfcn C) |
8 | 8 | ||
9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) | 9 | option(BUILD_SHARED_LIBS "shared/static libs" ON) |
10 | option(USE_WINE "use wine for test" ON) | ||
11 | option(BUILD_TESTS "tests?" OFF) | 10 | option(BUILD_TESTS "tests?" OFF) |
12 | 11 | ||
13 | set(headers dlfcn.h) | 12 | set(headers dlfcn.h) |
@@ -28,12 +27,9 @@ install (FILES ${headers} DESTINATION include) | |||
28 | 27 | ||
29 | if (BUILD_TESTS) | 28 | if (BUILD_TESTS) |
30 | enable_testing() | 29 | enable_testing() |
31 | if (USE_WINE) | ||
32 | find_program(WINE_EXECUTABLE NAMES wine) | ||
33 | endif () | ||
34 | add_library(testdll SHARED testdll.c) | 30 | add_library(testdll SHARED testdll.c) |
35 | set_target_properties(testdll PROPERTIES PREFIX "") | 31 | set_target_properties(testdll PROPERTIES PREFIX "") |
36 | add_executable(t_dlfcn test.c) | 32 | add_executable(t_dlfcn test.c) |
37 | target_link_libraries(t_dlfcn dl) | 33 | target_link_libraries(t_dlfcn dl) |
38 | add_test ( NAME t_dlfcn COMMAND ${WINE_EXECUTABLE} t_dlfcn${CMAKE_EXECUTABLE_SUFFIX} ) | 34 | add_test (NAME t_dlfcn COMMAND t_dlfcn) |
39 | endif () | 35 | endif () |