forked from patrickelectric/AtCore-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (54 loc) · 1.38 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
project(atcore-gui)
cmake_minimum_required(VERSION 3.0)
set(REQUIRED_QT_VERSION "5.7.0")
find_package (ECM 5.10.0 REQUIRED NO_MODULE)
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(ECMAddAppIcon)
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
find_package(Qt5AndroidExtras ${REQUIRED_QT_VERSION} REQUIRED)
set(atcore-gui_EXTRA_LIBS
Qt5::AndroidExtras
Qt5::QuickControls2
Qt5::Charts
Qt5::3DQuick
Qt5::3DQuickExtras
Qt5::3DQuickRender
Qt5::3DQuickInput
Qt5::3DCore
Qt5::3DExtras
Qt5::3DRender
Qt5::3DInput
)
endif()
find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS
Core
Quick
Test
Gui
Svg
QuickControls2
Charts
3DQuick
3DQuickExtras
3DQuickRender
3DQuickInput
3DCore
3DExtras
3DRender
3DInput
)
find_package(AtCore REQUIRED COMPONENTS
AtCore
)
set(atcore-gui_SRCS
main.cpp
)
qt5_add_resources(RESOURCES resources.qrc)
add_subdirectory(viewer3d)
add_executable(atcore-gui ${atcore-gui_SRCS} ${RESOURCES})
target_link_libraries(atcore-gui AtCore::AtCore Qt5::Core Qt5::Qml Qt5::Quick Qt5::Svg AtCore3D ${atcore-gui_EXTRA_LIBS})
install(TARGETS atcore-gui ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})