cmake: restore CMake 3.1 compatibility

This commit is contained in:
a dinosaur 2020-01-06 19:04:23 +11:00
parent b20894039f
commit 1ac67a54d7
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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)