2022-12-23 13:50:27 -05:00
|
|
|
cmake_minimum_required(VERSION 3.24)
|
|
|
|
project(BLT)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
option(BUILD_STD "Build the BLT standard utilities." ON)
|
|
|
|
option(BUILD_PROFILING "Build the BLT profiler extension" ON)
|
|
|
|
|
|
|
|
if(${BUILD_STD})
|
2022-12-25 23:19:44 -05:00
|
|
|
file(GLOB_RECURSE STD_FILES "${CMAKE_SOURCE_DIR}/src/blt/std/*.cpp")
|
2022-12-23 13:50:27 -05:00
|
|
|
else()
|
|
|
|
set(STD_FILES "")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(${BUILD_PROFILING})
|
2022-12-25 23:19:44 -05:00
|
|
|
file(GLOB_RECURSE PROFILING_FILES "${CMAKE_SOURCE_DIR}/src/blt/profiling/*.cpp")
|
2022-12-23 13:50:27 -05:00
|
|
|
else()
|
|
|
|
set(PROFILING_FILES "")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(include/)
|
|
|
|
|
|
|
|
add_library(BLT ${STD_FILES} ${PROFILING_FILES})
|