summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
author0 <0>2021-05-21 22:50:39 +0900
committer0 <0>2021-05-21 22:50:39 +0900
commit32264925b9cc54b8b8b92fa40e0717095a1bb9d7 (patch)
tree640baf7342f30e5cfb6f39a5952a06a172bc75cd /CMakeLists.txt
parent5c0cca5b770cb30d547f3d7c56be9f46aa1a31b8 (diff)
initial commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d1cfb37
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,48 @@
+cmake_minimum_required(VERSION 3.10.0)
+project(cluster VERSION 1.0.0)
+
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+set(INSTALL_DIRECTORY "/opt/apps")
+
+find_package(Qt5Core REQUIRED)
+find_package(Qt5Qml REQUIRED)
+find_package(Qt5Gui REQUIRED)
+
+include_directories(
+ "${Qt5Core_INCLUDE_DIRS}"
+ "${Qt5Qml_INCLUDE_DIRS}"
+ "${Qt5Gui_INCLUDE_DIRS}"
+)
+
+set(SOURCES Application/main.cpp)
+
+qt5_add_resources(
+ RESOURCES
+ GUIModel/GUIModel.qrc
+ Assets/Common/3DModelData.qrc
+ Assets/Common/3DModelTexture.qrc
+ Assets/Common/Fonts.qrc
+ Assets/Common/Images.qrc
+ Assets/Common/Shaders.qrc
+)
+
+add_executable(
+ ${PROJECT_NAME}
+ ${SOURCES}
+ ${RESOURCES}
+)
+
+target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Qml Qt5::Gui)
+
+if(NOT DEFINED APPS_INST_DIR)
+ set(APPS_INST_DIR /opt/apps)
+endif()
+
+file(GLOB VIDEOS ${CMAKE_CURRENT_SOURCE_DIR}/Assets/Common/Videos/*)
+install(FILES ${VIDEOS} DESTINATION ${APPS_INST_DIR})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${APPS_INST_DIR})
+