mirror of
https://github.com/PSI-Rockin/DobieStation.git
synced 2024-05-10 08:44:25 -04:00
cmake: restore CMake 3.1 compatibility
This commit is contained in:
parent
b20894039f
commit
1ac67a54d7
|
@ -23,8 +23,6 @@ if (MSVC)
|
|||
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT DobieQt)
|
||||
endif()
|
||||
|
||||
install(TARGETS DobieQt DESTINATION bin)
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/data/DobieStation.desktop.in
|
||||
|
|
|
@ -20,7 +20,7 @@ function(dobie_cxx_compile_options TARGET)
|
|||
)
|
||||
|
||||
target_compile_options(${TARGET} PRIVATE
|
||||
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:${DOBIE_GNU_FLAGS}>
|
||||
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:${DOBIE_GNU_FLAGS}>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:${DOBIE_MSVC_FLAGS}>)
|
||||
|
||||
# Needed to avoid ruining global scope with Windows.h on win32
|
||||
|
|
|
@ -40,3 +40,5 @@ target_include_directories(${TARGET} PRIVATE
|
|||
${CMAKE_SOURCE_DIR}/src
|
||||
${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
||||
target_link_libraries(${TARGET} Dobie::Core Qt5::Core Qt5::Widgets Qt5::Gui)
|
||||
|
||||
install(TARGETS DobieQt RUNTIME DESTINATION bin)
|
||||
|
|
Loading…
Reference in a new issue