-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (26 loc) · 800 Bytes
/
CMakeLists.txt
File metadata and controls
35 lines (26 loc) · 800 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
31
32
cmake_minimum_required(VERSION 3.28)
project(openGL)
set(CMAKE_CXX_STANDARD 17)
# Gather all ImGui resources files
aux_source_directory(${PROJECT_SOURCE_DIR}/include/imgUI IMGUI_SRC)
add_executable(openGL
src/glad.c
${IMGUI_SRC}
src/Particle.cpp
main.cpp
)
add_executable(test_program
src/glad.c
test/main.cpp
src/Particle.cpp
)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
link_directories(${PROJECT_SOURCE_DIR}/lib)
# 添加glfw3.lib
target_link_libraries(openGL
${PROJECT_SOURCE_DIR}/lib/glfw3.dll
${PROJECT_SOURCE_DIR}/lib/libassimp-5.dll)
# 让test/main。cpp链接到glfw3.dll
target_link_libraries(test_program
${PROJECT_SOURCE_DIR}/lib/glfw3.dll
${PROJECT_SOURCE_DIR}/lib/libassimp-5.dll)