This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
libdokuwiki/CMakeLists.txt

38 lines
567 B
CMake

cmake_minimum_required(VERSION 3.6)
project(DokuWiki LANGUAGES CXX)
find_package(XMLRPC REQUIRED c++2 client)
set(dokuwiki_headers
include/dokuwiki.h
source/dokuwiki.impl.h
)
set(dokuwiki_sources
source/dokuwiki.impl.cpp
source/dokuwiki.cpp
)
add_library(${PROJECT_NAME}
${dokuwiki_headers}
${dokuwiki_sources}
)
set_target_properties(${PROJECT_NAME}
PROPERTIES CXX_STANDARD 14
)
target_include_directories(${PROJECT_NAME}
PUBLIC
include
PRIVATE
${XMLRPC_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
${XMLRPC_LIBRARIES}
)