17a267f2 |
## CMake
cmake_minimum_required(VERSION 3.14)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
## Project
project(glbackend
VERSION 1.0.0
LANGUAGES CXX
)
## Main target
add_library(${PROJECT_NAME})
|
583abb86 |
## Variables
set(GLBACKEND_DEPENDENCIES)
set(GLBACKEND_DEFINITIONS)
|
b3b5c285 |
## glfw
find_package(glfw3)
if(glfw3_FOUND)
list(APPEND GLBACKEND_DEPENDENCIES glfw)
list(APPEND GLBACKEND_DEFINITIONS GLBACKEND_GLFW)
endif()
## Cache
set(GLBACKEND_DEFINITIONS "${GLBACKEND_DEFINITIONS}" CACHE INTERNAL "")
|
17a267f2 |
## Common
include(common.cmake)
common(
CXX_STANDARD 11
|
583abb86 |
FETCHCONTENT
https://git.rcrnstn.net/rcrnstn/glbase
https://git.rcrnstn.net/rcrnstn/cxx-str
DEPENDENCIES_PRIVATE
glbase
cxx-str
${GLBACKEND_DEPENDENCIES}
DEPENDENCIES_TESTS
glbase
cxx-str
${GLBACKEND_DEPENDENCIES}
DEFINITIONS
${GLBACKEND_DEFINITIONS}
|
17a267f2 |
)
|