-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·48 lines (42 loc) · 1.42 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
set(PNAME CGProject)
set(CFILE Project)
SET(CMAKE_BUILD_TYPE Debug) #Enable this to enable breakpoints
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND REQUIRED wayland-client wayland-egl)
cmake_minimum_required(VERSION 3.18)
project(${PNAME}) # Create project PNAME
set(CMAKE_CXX_STANDARD 20) # c++ version
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/headers)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/shaders)
# Build project, give it a name and includes list of file to be compiled
add_executable(${PNAME} src/${CFILE}.cpp
src/gameObjects/Object.cpp
src/gameObjects/Object.hpp
src/gameObjects/Truck.cpp
src/gameObjects/Truck.hpp
src/utils/definitions.hpp
src/utils/definitions.cpp
src/utils/MatrixUtils.cpp
src/utils/MatrixUtils.hpp
src/utils/Model.hpp
src/physics/PhysicsEngine.cpp
src/physics/PhysicsEngine.hpp
src/worldgen/Terrain.hpp
src/worldgen/Terrain.cpp
src/worldgen/Noise.hpp
src/worldgen/Tree.hpp
src/worldgen/Tree.cpp
src/Project.hpp
)
#target_compile_definitions (${PNAME} PUBLIC NDEBUG) #Used to deactivate validation layers messages
include_directories(${WAYLAND_INCLUDE_DIRS})
link_directories(${WAYLAND_LIBRARY_DIRS})
target_link_libraries(${PNAME}
-lglfw
-lvulkan
-ldl
-lpthread
-lXrandr
-lXi
${WAYLAND_LIBRARIES}
)