CMakeLists.txt
3bca6231
 ## CMake
 cmake_minimum_required(VERSION 3.14)
 if(NOT CMAKE_BUILD_TYPE)
     set(CMAKE_BUILD_TYPE Debug)
 endif()
 
 ## Project
 project(glshader
     VERSION 1.0.0
     LANGUAGES CXX
 )
 
 ## Main target
 add_library(${PROJECT_NAME})
 
 ## C++
 include(common.cmake)
 common(
     CXX_STANDARD 11
     PACKAGES
         OpenGL
         GLEW
     FETCHCONTENT
         https://git.rcrnstn.net/rcrnstn/cxx-str
         https://git.rcrnstn.net/rcrnstn/gltest
     DEPENDENCIES_PUBLIC
         OpenGL::GL
         GLEW::GLEW
     DEPENDENCIES_PRIVATE
         cxx-str
     DEPENDENCIES_TESTS
         gltest
 )