-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
79 lines (68 loc) · 2.04 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
set_sources(PUBLIC_SOURCES
color.hpp
font.hpp
image.hpp
mesh.hpp
renderer.hpp
shader.hpp
texture.hpp
uniform.hpp
)
set_sources(PRIVATE_SOURCES
src/mesh.cpp
src/shader.cpp
src/texture.cpp
src/uniform.cpp
src/font/font.cpp
src/font/tables/character_to_glyph_index_mapping.cpp
src/font/tables/character_to_glyph_index_mapping.hpp
src/font/tables/font_header.cpp
src/font/tables/font_header.hpp
src/font/tables/glyph_data.cpp
src/font/tables/glyph_data.hpp
src/font/tables/horizontal_header.cpp
src/font/tables/horizontal_header.hpp
src/font/tables/horizontal_metrics.cpp
src/font/tables/horizontal_metrics.hpp
src/font/tables/index_to_location.cpp
src/font/tables/index_to_location.hpp
src/font/tables/maximum_profile.cpp
src/font/tables/maximum_profile.hpp
src/font/tables/naming.cpp
src/font/tables/naming.hpp
src/font/tables/os2.cpp
src/font/tables/os2.hpp
src/font/types.hpp
src/image/bmp.cpp
src/image/bmp.hpp
src/image/image_info.hpp
src/image/image.cpp
src/image/png.cpp
src/image/png.hpp
src/opengl/opengl.cpp
src/opengl/opengl.hpp
src/render/renderer_impl.hpp
src/render/renderer.cpp
src/render/opengl/attributes.hpp
src/render/opengl/opengl_logger.cpp
src/render/opengl/opengl_logger.hpp
src/render/opengl/opengl_mesh.cpp
src/render/opengl/opengl_mesh.hpp
src/render/opengl/opengl_renderer.cpp
src/render/opengl/opengl_renderer.hpp
src/render/opengl/opengl_shader.cpp
src/render/opengl/opengl_shader.hpp
src/render/opengl/opengl_texture.cpp
src/render/opengl/opengl_texture.hpp
)
target_sources(${PROJECT_NAME}
PUBLIC
${PUBLIC_SOURCES}
PRIVATE
${PRIVATE_SOURCES}
)
install(FILES ${FRAMEWORK_DEPENDENCIES_DIR}/KHR/khrplatform.h DESTINATION dependencies/KHR)
make_install_files_target(include/${MODULE} ${PUBLIC_SOURCES})
# Link with OpenGL
find_package(OpenGL REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE ${OPENGL_LIBRARIES})