29 lines
597 B
CMake
29 lines
597 B
CMake
# Copyright (c) 2022 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
if(NOT DEFINED DAWN_OPENGL_EXCLUDE_LIBRARIES)
|
|
# Libraries
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
target_include_directories(${DAWN_TARGET_NAME}
|
|
PUBLIC
|
|
${OPENGL_INCLUDE_DIR}
|
|
)
|
|
|
|
target_link_libraries(${DAWN_TARGET_NAME}
|
|
PUBLIC
|
|
${OPENGL_LIBRARIES}
|
|
)
|
|
endif()
|
|
|
|
# Includes
|
|
target_include_directories(${DAWN_TARGET_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
# Subdirs
|
|
add_subdirectory(display)
|
|
add_subdirectory(scene) |