CMakeLists.txt
d143b7ee
 ## CMake
 cmake_minimum_required(VERSION 3.14)
 if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE Debug)
 endif()
 
 ## Project
 project(glbase
     VERSION 1.0.0
     LANGUAGES CXX
 )
58cc126e
 
 ## Main target
 add_library(${PROJECT_NAME})
 
 ## Variables
 if(NOT GLBASE_INCLUDE)
     set(GLBASE_PACKAGES GLEW       OpenGL)
     set(GLBASE_TARGETS  GLEW::GLEW OpenGL::GL)
     set(GLBASE_INCLUDE  <GL/glew.h>)
 endif()
 
 ## Common
 include(common.cmake)
 common(
     CXX_STANDARD 11
     DISABLE_CPPCHECK # function try block
     PACKAGES
         ${GLBASE_PACKAGES}
     FETCHCONTENT
         https://git.rcrnstn.net/rcrnstn/cxx-str
     DEPENDENCIES_PUBLIC
         ${GLBASE_TARGETS}
     DEPENDENCIES_PRIVATE
         cxx-str
     DEFINITIONS
         GLBASE_INCLUDE=${GLBASE_INCLUDE}
 )