-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
36 lines (24 loc) · 986 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
34
35
36
cmake_minimum_required(VERSION 3.0)
project(dtk)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install" CACHE STRING "Installation directory of library files")
#Installation directory of library files
set(DTK_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}")
#Installation directory for CMake configuration files
set(DTK_INSTALL_CMAKEDIR "${CMAKE_BINARY_DIR}")
#Installation directory for header files
set(DTK_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}")
if("${DTK_INSTALL_LIBDIR}" STREQUAL "")
set(DTK_INSTALL_LIBDIR "lib")
endif()
if("${DTK_INSTALL_CMAKEDIR}" STREQUAL "")
set(DTK_INSTALL_CMAKEDIR "bin")
endif()
if("${DTK_INSTALL_INCLUDEDIR}" STREQUAL "")
set(DTK_INSTALL_INCLUDEDIR "include")
endif()
set(DTK_INSTALL_INCLUDEDIR "include")
message("DTK_INSTALL_LIBDIR : ${DTK_INSTALL_LIBDIR}")
message("DTK_INSTALL_INCLUDEDIR : ${DTK_INSTALL_INCLUDEDIR}")
message("DTK_INSTALL_CMAKEDIR: ${DTK_INSTALL_CMAKEDIR}")
add_subdirectory(src)