-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (29 loc) · 1.32 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
# CMakeList.txt : CMake project for SolarSystemSim, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 17)
project ("SolarSystemSim")
SET(OPENGL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/GLEW/include ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/GLFW/include)
SET(OPENGL_LIBRARIES ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/GLEW/lib/glew32s.lib ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/GLEW/lib/GLU32.lib ${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/GLFW/lib-v2022/glfw3.lib Opengl32)
# Add source to this project's executable.
add_executable (${PROJECT_NAME}
"src/SolarSystemSim.cpp"
"src/SolarSystemSim.h"
"src/Renderer.h"
"src/Renderer.cpp"
"src/VertexBuffer.h"
"src/VertexBuffer.cpp"
"src/IndexBuffer.h"
"src/IndexBuffer.cpp"
"src/Shader.cpp"
"src/Shader.h"
"src/CelestialBody.hpp")
# find_package(GLEW REQUIRED)
# target_link_libraries(${PROJECT_NAME} PRIVATE GLEW::GLEW)
# find_package(glfw3 CONFIG REQUIRED)
# target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
target_compile_definitions(${PROJECT_NAME} PRIVATE GLEW_STATIC)
target_include_directories(${PROJECT_NAME} PRIVATE ${OPENGL_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${OPENGL_LIBRARIES})
# TODO: Add tests and install targets if needed.