-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
30 lines (25 loc) · 892 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
cmake_minimum_required(VERSION 3.17)
cmake_policy(VERSION 3.17)
project(ddic VERSION 0.1.1)
set(PROJECT_DESCRIPTION "Drako's DI Container for C++")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
option(WITH_TESTS "build the unit tests" OFF)
if (WITH_TESTS)
enable_testing()
endif (WITH_TESTS)
add_subdirectory(contrib)
add_subdirectory(src)
add_subdirectory(tests)
find_package(Doxygen)
if (DOXYGEN_FOUND)
configure_file(Doxyfile.in Doxyfile)
add_custom_target(doc "${DOXYGEN_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Generating documentation with Doxygen." VERBATIM
)
endif (DOXYGEN_FOUND)
set(PACKAGE_NAME "${PROJECT_NAME}")
set(PACKAGE_VERSION "${PROJECT_VERSION}")
set(PACKAGE_STRING "${PACKAGE_NAME}-${PACKAGE_VERSION}")