-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
72 lines (51 loc) · 1.65 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 3.28)
project(fastgame VERSION 1.0.0 LANGUAGES CXX C)
set(APPLICATION_DOMAIN "fastgame")
set(APPLICATION_NAME "FastGame")
set(COMPONENT_NAME "fastgame")
set(ORGANIZATION_NAME "WWMM")
set(ORGANIZATION_DOMAIN "com.github.wwmm")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(QT_DEFAULT_MAJOR_VERSION 6)
set(QT_MAJOR_VERSION ${QT_DEFAULT_MAJOR_VERSION})
set(Boost_USE_MULTITHREADED ON)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt${QT_MAJOR_VERSION} REQUIRED NO_MODULE COMPONENTS
Core
Quick
Qml
Gui
QuickControls2
Widgets
)
find_package(KF${QT_MAJOR_VERSION} REQUIRED COMPONENTS
Kirigami
I18n
CoreAddons
Config
ConfigWidgets
)
ki18n_install(po)
find_package(Threads REQUIRED)
find_package(Boost 1.86 REQUIRED COMPONENTS filesystem program_options)
find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBX11 x11 xext)
find_library(XNVCTRL libXNVCtrl.a libXNVCtrl.so)
if(XNVCTRL AND LIBX11_FOUND)
message(STATUS "Found XNVCTRL = ${XNVCTRL}")
message(STATUS "Found LIBX11 = ${LIBX11_LIBRARIES}")
message(STATUS "Enabling Nvidia support")
add_compile_definitions(USE_NVIDIA)
else()
message("Nvidia support won't be available!")
endif()
file(GLOB KCFG_FILES ${PROJECT_SOURCE_DIR}/src/contents/kcfg/*.kcfg)
file(GLOB KCFGC_FILES ${PROJECT_SOURCE_DIR}/src/contents/kcfg/*.kcfgc)
add_subdirectory(src)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)