Changeset View
Changeset View
Standalone View
Standalone View
data/CMakeLists.txt
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 58 | else() | |||
---|---|---|---|---|---|
61 | 61 | | |||
62 | # object library to make cross-folder dependencies work, only themes | 62 | # object library to make cross-folder dependencies work, only themes | ||
63 | add_library(SyntaxHighlightingData OBJECT ${themes_QRC}) | 63 | add_library(SyntaxHighlightingData OBJECT ${themes_QRC}) | ||
64 | endif() | 64 | endif() | ||
65 | 65 | | |||
66 | # set PIC to allow use in static and shared libs | 66 | # set PIC to allow use in static and shared libs | ||
67 | # this needs some more recent CMake than generally required | 67 | # this needs some more recent CMake than generally required | ||
68 | set_property(TARGET SyntaxHighlightingData PROPERTY POSITION_INDEPENDENT_CODE 1) | 68 | set_property(TARGET SyntaxHighlightingData PROPERTY POSITION_INDEPENDENT_CODE 1) | ||
69 | if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0") | 69 | if(NOT ${CMAKE_VERSION} VERSION_LESS "3.13.0") | ||
70 | target_link_libraries(SyntaxHighlightingData PRIVATE Qt5::Core) | 70 | target_link_libraries(SyntaxHighlightingData PRIVATE Qt5::Core) | ||
71 | endif() | 71 | endif() |