-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
32 lines (22 loc) · 896 Bytes
/
CMakeLists.txt
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
# -*- cmake -*-
cmake_minimum_required(VERSION 3.3.2)
# VERSION not required, but good for library versioning
project(CRUD VERSION 0.1.0)
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
#set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
set ( CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/examples)
find_package(Boost
COMPONENTS "log" "system" "serialization" "program_options"
REQUIRED
)
add_subdirectory(service)
if ( DEFINED CRUD_WITH_EXAMPLES)
add_subdirectory(examples)
endif()
#Install all json files from our examples
file(GLOB_RECURSE HTML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/examples/*.html)
INSTALL(FILES ${HTML_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX})