添加纯OpenGL实现demo
This commit is contained in:
26
test/onlygl/CMakeLists.txt
Normal file
26
test/onlygl/CMakeLists.txt
Normal file
@@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(base-project)
|
||||
find_package(X11 REQUIRED)
|
||||
add_executable(
|
||||
${PROJECT_NAME}
|
||||
main.cpp
|
||||
camera.h
|
||||
sensor.h
|
||||
glad.c
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME}
|
||||
PRIVATE
|
||||
libglfw3.a
|
||||
${X11_LIBRARIES}
|
||||
${OPENGL_LIBRARIES}
|
||||
GL
|
||||
Xrandr
|
||||
Xi
|
||||
Xinerama
|
||||
Xcursor
|
||||
pthread
|
||||
dl
|
||||
)
|
||||
Reference in New Issue
Block a user