-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeListsRendererOpenGL.txt
32 lines (25 loc) · 1.16 KB
/
CMakeListsRendererOpenGL.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
SET(RENDERER_NAME "opengl_renderer")
SET(RENDERER_SOURCES "")
SET(RENDERER_DEFINITIONS "")
SET(RENDERER_INCLUDE_DIR "")
SET(RENDERER_LIBRARIES "")
SET(RENDERER_OPENGL_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/renderers/opengl" CACHE STRING "OpenGL renderer source directory")
SOURCE_GROUP("" FILES "CMakeListsRendererOpenGL.txt")
LIST(APPEND RENDERER_SOURCES "CMakeListsRendererOpenGL.txt")
SET(RENDERER_SOURCES
${RENDERER_OPENGL_SRC_DIR}/renderer.cpp
${RENDERER_OPENGL_SRC_DIR}/renderer.hpp
)
SOURCE_GROUP("src" FILES ${RENDERER_SOURCES})
LIST(APPEND RENDERER_DEFINITIONS ${COMMON_DEFINITIONS})
LIST(APPEND RENDERER_INCLUDE_DIR ${ENGINESRC_DIR})
LIST(APPEND RENDERER_INCLUDE_DIR ${RENDERER_DIRECTX_SRC_DIR})
#LIST(APPEND RENDERER_INCLUDE_DIR ${Boost_INCLUDE_DIR})
#LIST(APPEND RENDERER_LIBRARIES ${FRAMEWORK_SYSTEM_LIBRARIES})
INCLUDE_DIRECTORIES(${RENDERER_INCLUDE_DIR})
LINK_DIRECTORIES(${RENDERER_LIBRARIES})
ADD_LIBRARY(${RENDERER_NAME} MODULE ${RENDERER_SOURCES})
SET_PROPERTY(TARGET ${RENDERER_NAME} PROPERTY COMPILE_DEFINITIONS ${RENDERER_DEFINITIONS})
TARGET_LINK_LIBRARIES(${RENDERER_NAME} ${RENDERER_LIBRARIES})
ADD_DEPENDENCIES(${RENDERER_NAME} ${ENGINE_NAME})
# EOF