-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
56 lines (42 loc) · 1.13 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# The main CMake setting
cmake_minimum_required(VERSION 2.8.11)
# Compatibility with old versions
include(cmake/old.cmake)
# Set project
set(ISVD_NAME "Integrated Singular Value Decomposition")
set(ISVD_MAJOR_VERSION 1)
set(ISVD_MINOR_VERSION 3)
set(ISVD_PATCH_VERSION 2)
set(ISVD_VERSION "${ISVD_MAJOR_VERSION}.${ISVD_MINOR_VERSION}.${ISVD_PATCH_VERSION}")
if(NOT CMAKE_VERSION VERSION_LESS 3.0.0)
cmake_policy(SET CMP0048 OLD)
endif()
# Set cache options
include(cmake/cache.cmake)
# Initialize project
project(ISVD)
# Set Makefile
set(CMAKE_COLOR_MAKEFILE ON)
# set(CMAKE_VERBOSE_MAKEFILE ON)
# Set module path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
# Variables
string(ASCII 27 Esc)
# Set the options
include(cmake/options.cmake)
# Set the packages
include(cmake/packages.cmake)
# Create configure files
include(cmake/configure.cmake)
# Set variables
include(cmake/vars.cmake)
# Add subdirectories
add_subdirectory(ext)
add_subdirectory(src)
add_subdirectory(demo)
add_subdirectory(share)
add_subdirectory(check)
add_subdirectory(doxygen)
add_subdirectory(cpplint)
# Display message
include(cmake/display.cmake)