diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/plustache/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/plustache/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/plustache/CMakeLists.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/plustache/CMakeLists.txt b/vcpkg/ports/plustache/CMakeLists.txt new file mode 100644 index 0000000..b6bd403 --- /dev/null +++ b/vcpkg/ports/plustache/CMakeLists.txt @@ -0,0 +1,39 @@ +cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
+project(plustache LANGUAGES CXX)
+
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+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)
|