Changeset View
Changeset View
Standalone View
Standalone View
src/svnqt/CMakeLists.txt
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | |||||
108 | target_include_directories(svnqt | 108 | target_include_directories(svnqt | ||
109 | PUBLIC | 109 | PUBLIC | ||
110 | ${CMAKE_CURRENT_SOURCE_DIR}/../ | 110 | ${CMAKE_CURRENT_SOURCE_DIR}/../ | ||
111 | ${CMAKE_CURRENT_BINARY_DIR}/../ | 111 | ${CMAKE_CURRENT_BINARY_DIR}/../ | ||
112 | ) | 112 | ) | ||
113 | set_property(TARGET svnqt APPEND PROPERTY COMPILE_FLAGS ${APR_CPP_FLAGS}) | 113 | set_property(TARGET svnqt APPEND PROPERTY COMPILE_FLAGS ${APR_CPP_FLAGS}) | ||
114 | set_property(TARGET svnqt PROPERTY CXX_VISIBILITY_PRESET hidden) | 114 | set_property(TARGET svnqt PROPERTY CXX_VISIBILITY_PRESET hidden) | ||
115 | 115 | | |||
116 | if(Backtrace_FOUND) | ||||
117 | target_include_directories(svnqt PUBLIC SYSTEM ${Backtrace_INCLUDE_DIRS}) | ||||
118 | target_link_libraries(svnqt PUBLIC ${Backtrace_LIBRARY}) | ||||
119 | endif() | ||||
120 | | ||||
116 | if(WIN32) | 121 | if(WIN32) | ||
117 | target_link_libraries(svnqt wsock32.lib) | 122 | target_link_libraries(svnqt wsock32.lib) | ||
118 | endif() | 123 | endif() | ||
119 | 124 | | |||
120 | # Just a small linking test | 125 | # Just a small linking test | ||
121 | if(KDE4_BUILD_TESTS) | 126 | if(KDE4_BUILD_TESTS) | ||
122 | add_executable(testlink testmain.cpp) | 127 | add_executable(testlink testmain.cpp) | ||
123 | target_link_libraries(testlink svnqt) | 128 | target_link_libraries(testlink svnqt) | ||
124 | endif() | 129 | endif() | ||
125 | 130 | | |||
126 | if(KDE4_BUILD_TESTS) | 131 | if(KDE4_BUILD_TESTS) | ||
127 | add_subdirectory(tests) | 132 | add_subdirectory(tests) | ||
128 | add_subdirectory(cache/test) | 133 | add_subdirectory(cache/test) | ||
129 | endif() | 134 | endif() |