## CMake
cmake_minimum_required(VERSION 3.14)
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Debug)
endif()

## Project
project(globject
    VERSION 1.0.0
    LANGUAGES CXX
)

## Main target
add_library(${PROJECT_NAME})

## Common
include(common.cmake)
common(
    CXX_STANDARD 11
    DISABLE_CPPCHECK # STR_JOIN
    FETCHCONTENT
        https://git.rcrnstn.net/rcrnstn/glbase
        https://git.rcrnstn.net/rcrnstn/gltraits
        https://git.rcrnstn.net/rcrnstn/cxx-str
    DEPENDENCIES_PRIVATE
        glbase
        gltraits
        cxx-str
    DEPENDENCIES_TESTS
        glbase
        gltraits
)