19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
project(bfl LANGUAGES CXX)
|
||||
|
||||
option(BUILD_EXAMPLE "Build the example CLI" ON)
|
||||
|
||||
add_library(bfl INTERFACE)
|
||||
target_include_directories(bfl
|
||||
INTERFACE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
target_compile_features(bfl INTERFACE cxx_std_20)
|
||||
|
||||
if(BUILD_EXAMPLE)
|
||||
add_executable(bfl_example src/bfl.cpp)
|
||||
set_target_properties(bfl_example PROPERTIES OUTPUT_NAME bfl)
|
||||
target_link_libraries(bfl_example PRIVATE bfl)
|
||||
target_compile_features(bfl_example PRIVATE cxx_std_23)
|
||||
endif()
|
Reference in New Issue
Block a user