-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (62 loc) · 1.91 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
73
cmake_minimum_required(VERSION 3.16)
# Set the project name
project(atom-architect LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# get Git HASH
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
OUTPUT_VARIABLE GIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
add_compile_definitions(GIT_HASH="${GIT_HASH}")
# Find Qt6 packages
find_package(Qt6 REQUIRED COMPONENTS Widgets Charts)
add_executable(atom-architect
src/main.cpp
src/gui/anaglyph_widget.cpp
src/gui/interface_window.cpp
src/gui/mainwindow.cpp
src/gui/periodic_table.cpp
src/gui/shader_program.cpp
src/gui/shader_program_manager.cpp
src/gui/structure_renderer.cpp
src/gui/structure_info_widget.cpp
src/gui/structure_info_basic_tab.cpp
src/gui/fragment_selector.cpp
src/gui/toolbar.cpp
src/gui/user_action.cpp
src/gui/scene.cpp
src/gui/analysis_geometry_optimization.cpp
src/gui/analysis_neb.cpp
src/gui/logwindow.cpp
src/data/atom_settings.cpp
src/data/atom.cpp
src/data/bond.cpp
src/data/fragment.cpp
src/data/model.cpp
src/data/model_loader.cpp
src/data/structure.cpp
src/data/structure_loader.cpp
src/data/structure_saver.cpp
src/data/structure_operator.cpp
src/atomarchitectapplication.cpp
resources.qrc
)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(MACOSX TRUE)
set_target_properties(atom-architect PROPERTIES
MACOSX_BUNDLE TRUE
)
endif()
include_directories("src/vendor/eigen-3.4.0"
"src/vendor/glm-1.0.1")
target_link_libraries(atom-architect PRIVATE Qt6::Core Qt6::Widgets Qt6::Charts)
set_target_properties(atom-architect PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON
)