|
|
@ -21,7 +21,6 @@ set( |
|
|
|
set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ standard") |
|
|
|
set(CMAKE_CXX_STANDARD 20 CACHE STRING "C++ standard") |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported") |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "Require C++ standard to be supported") |
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default") |
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "compile as PIC by default") |
|
|
|
set(CMAKE_AUTOMOC ON) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
option(HUNTER_ENABLED "Enable Hunter package manager" OFF) |
|
|
|
option(HUNTER_ENABLED "Enable Hunter package manager" OFF) |
|
|
|
include("cmake/HunterGate.cmake") |
|
|
|
include("cmake/HunterGate.cmake") |
|
|
@ -664,6 +663,11 @@ else() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(nheko |
|
|
|
|
|
|
|
PROPERTIES |
|
|
|
|
|
|
|
CMAKE_SKIP_INSTALL_RPATH TRUE |
|
|
|
|
|
|
|
AUTOMOC ON) |
|
|
|
|
|
|
|
|
|
|
|
if(APPLE) |
|
|
|
if(APPLE) |
|
|
|
target_link_libraries (nheko PRIVATE Qt5::MacExtras) |
|
|
|
target_link_libraries (nheko PRIVATE Qt5::MacExtras) |
|
|
|
elseif(WIN32) |
|
|
|
elseif(WIN32) |
|
|
@ -757,8 +761,6 @@ if(MAN) |
|
|
|
add_subdirectory(man) |
|
|
|
add_subdirectory(man) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(nheko PROPERTIES CMAKE_SKIP_INSTALL_RPATH TRUE) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
if(FLATPAK) |
|
|
|
if(FLATPAK) |
|
|
|
set(APPID "io.github.NhekoReborn.Nheko") |
|
|
|
set(APPID "io.github.NhekoReborn.Nheko") |
|
|
|