Skip to content

Commit cb6fda1

Browse files
committed
Add CMake, update gitignore
1 parent 589f187 commit cb6fda1

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vs/
22
Win32/
33
x64/
4-
*.vcxproj.user
4+
*.vcxproj.user
5+
build

src/CMakeLists.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
cmake_minimum_required(VERSION 3.5)
3+
4+
project(NaiveGL CXX)
5+
6+
set(CMAKE_CXX_STANDARD 17)
7+
8+
add_library (opengl32 SHARED
9+
gl_begin.cpp
10+
gl_clip.cpp
11+
gl_display_lists.cpp
12+
gl_evaluators.cpp
13+
gl_export.cpp
14+
gl_feedback.cpp
15+
gl_framebuffer.cpp
16+
gl_lighting.cpp
17+
gl_matrix_stack.cpp
18+
gl_pixels.cpp
19+
gl_rasterization.cpp
20+
gl_selection.cpp
21+
gl_state.cpp
22+
gl_state_requests.cpp
23+
gl_texgen.cpp
24+
gl_texture.cpp
25+
gl_viewport.cpp
26+
win/dllmain.cpp
27+
win/wgl_context.cpp
28+
win/opengl32.def
29+
)
30+
31+
target_include_directories(opengl32 PUBLIC
32+
${PROJECT_SOURCE_DIR}
33+
${PROJECT_SOURCE_DIR}/../deps/glm
34+
)

0 commit comments

Comments
 (0)