-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (39 loc) · 1.1 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
cmake_minimum_required(VERSION 3.26)
project(app)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(src/math)
include_directories(src/engine)
list(APPEND COMPILE_OPTIONS
-std=c++20
-O3
-fno-strict-overflow
-Wno-deprecated-declarations
-Wall
-Wextra
-Werror
-Wno-unused-variable)
add_executable(app
src/main.cpp
src/window.cpp
src/engine/loader.cpp
src/engine/mesh.cpp
src/engine/renderer.cpp
src/math/m3pch.cpp
src/math/Vec3.cpp
src/math/Mat4.cpp
src/math/Scalar.cpp
src/math/Transform.cpp
src/math/Quat.cpp
src/engine/scene.cpp
src/engine/render_manager.cpp
src/visualization/resources.h
src/visualization/resources.cpp
src/visualization/molecula_generator.h
src/visualization/molecula_generator.cpp
)
find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
target_link_libraries(app Qt6::Core Qt6::Gui Qt6::Widgets)