-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·33 lines (24 loc) · 1019 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
33
cmake_minimum_required(VERSION 3.5)
project(NVD)
set(CMAKE_CXX_STANDARD 14)
# Checking for dependencies
find_package(libmongocxx REQUIRED)
find_package(libbsoncxx REQUIRED)
# Include libmongocxx and libbsoncxx include directories.
include_directories(${LIBMONGOCXX_INCLUDE_DIR})
include_directories(${LIBBSONCXX_INCLUDE_DIR})
# Include the project include directory.
include_directories(${NVD_SOURCE_DIR}/include)
# Include mongodb headers and libs.
include_directories("/usr/local/include/mongocxx/v_noabi")
include_directories("/usr/local/include/bsoncxx/v_noabi")
include_directories("/usr/local/include/libmongoc-1.0")
include_directories("/usr/local/include/libbson-1.0")
include_directories("/usr/local/lib")
file(GLOB HEADER_LIST "${CMAKE_SOURCE_DIR}/include/*.hpp")
install (FILES ${HEADER_LIST} DESTINATION include)
# Set up source directories
add_subdirectory(src)
set(NVD_LIB_LOCATION "$<TARGET_FILE:${nvd}>")
configure_file(CMake/nvdConfig.cmake.in
${NVD_BINARY_DIR}/nvdConfig.cmake @ONLY)