Update CMakeLists.txt

This commit is contained in:
sha512sum 2024-02-27 18:54:37 +00:00
parent 6e52a6262d
commit ea96085167

View file

@ -3,6 +3,9 @@ project(utempl)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(fmt REQUIRED)
set(CMAKE_CXX_STANDART 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CXX_EXTENSIONS NO)
FIND_PACKAGE(Boost 1.84.0 REQUIRED)
add_library(utempl INTERFACE)
target_link_libraries(utempl INTERFACE fmt::fmt-header-only)
target_link_libraries(utempl INTERFACE fmt::fmt-header-only ${Boost_LIBRARIES})
target_include_directories(utempl INTERFACE include)