-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (22 loc) · 743 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (22 loc) · 743 Bytes
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
cmake_minimum_required(VERSION 3.0.0)
# add_subdirectory("assimp")
project(my_opengl_project VERSION 0.1.0)
cmake_policy(SET CMP0072 NEW)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(OpenGL REQUIRED)
find_package(Freetype REQUIRED)
find_package(glfw3 3.4 REQUIRED)
# find_package(glm CONFIG REQUIRED)
# target_link_libraries(main PRIVATE glm::glm-header-only)
add_executable(my_opengl_project
main.cpp
include/glad.c
cloth_vertex.cpp
cloth_renderer.cpp
spring.cpp
cloth_handler.cpp
global.cpp
sphere.cpp
collision_handler.cpp)
include_directories(/urs/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/libpng16)
target_link_libraries(my_opengl_project glfw OpenGL::GL freetype)