mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 14:10:24 +08:00
37 lines
635 B
CMake
37 lines
635 B
CMake
|
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
||
|
project(plustache LANGUAGES CXX)
|
||
|
|
||
|
find_package(Boost REQUIRED COMPONENTS regex)
|
||
|
|
||
|
add_library(
|
||
|
plustache
|
||
|
|
||
|
src/template.cpp
|
||
|
src/context.cpp
|
||
|
)
|
||
|
|
||
|
|
||
|
target_include_directories(
|
||
|
plustache
|
||
|
|
||
|
PUBLIC
|
||
|
${CMAKE_CURRENT_LIST_DIR}/include
|
||
|
PRIVATE
|
||
|
${Boost_INCLUDE_DIRS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(
|
||
|
plustache
|
||
|
|
||
|
PRIVATE
|
||
|
${Boost_LIBRARIES}
|
||
|
)
|
||
|
|
||
|
|
||
|
install(TARGETS plustache
|
||
|
RUNTIME DESTINATION bin
|
||
|
LIBRARY DESTINATION lib
|
||
|
ARCHIVE DESTINATION lib
|
||
|
)
|
||
|
install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/include/plustache DESTINATION include)
|