blob: f9579c0c6e93065fa5a372f5d9adb5ea17a7c96c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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)
|