-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (40 loc) · 1.51 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
CMAKE_MINIMUM_REQUIRED ( VERSION 2.81 )
SET ( SRC_FILES
Main.cpp
"callbacks/ErrorCallback.cpp"
"game/Game.cpp"
"game/GLFWManager.cpp"
"game/game_objects/GameObject.cpp"
"game/game_objects/3D/CubeObject.cpp"
"game/ticking/GameTicker.cpp"
"logger/Logger.cpp"
"renderer/Renderer.cpp"
"renderer/model/Mesh.cpp"
"renderer/model/Model.cpp"
"renderer/transformation/Transformation.cpp"
"renderer/vertex_array/VertexArray.cpp"
"renderer/resources/shader/ShaderProgram.cpp"
"renderer/resources/material/Material.cpp"
"resources/ResourceLoader.cpp"
"resources/ResourceImpl.cpp"
"resources/factories/TextLoader.cpp"
"resources/factories/ModelLoader.cpp"
"window/Window.cpp"
#Triangle.cpp"
)
#SET ( SRC_FILES Main.cpp )
SET ( CMAKE_CXX_STANDARD 17 )
SET ( CMAKE_CXX_STANDARD_REQUIRED ON )
SET ( CMAKE_BUILD_TYPE Debug )
PROJECT ( ALL_BUILD )
ADD_COMPILE_OPTIONS ( /Ob0 )
LINK_DIRECTORIES ( ${PROJECT_SOURCE_DIR}/lib )
INCLUDE_DIRECTORIES ( ${PROJECT_SOURCE_DIR}/include )
ADD_EXECUTABLE ( someFPS ${SRC_FILES} )
TARGET_LINK_LIBRARIES ( someFPS assimp-vc142-mt )
TARGET_LINK_LIBRARIES ( someFPS opengl32 )
TARGET_LINK_LIBRARIES ( someFPS glfw3dll )
TARGET_LINK_LIBRARIES ( someFPS glew32 )
TARGET_LINK_LIBRARIES ( someFPS libpng16d )
TARGET_LINK_LIBRARIES ( someFPS freetyped )
SET_TARGET_PROPERTIES ( someFPS PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )