forked from lanl/sparsehub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (26 loc) · 1.29 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
#------------------------------------------------------------------------------#
# Set the minimum CMake version
#------------------------------------------------------------------------------#
cmake_minimum_required(VERSION 3.2)
#------------------------------------------------------------------------------#
# Setup the project
#------------------------------------------------------------------------------#
project(SPARSEHUB VERSION 0.1.0)
set(default_build_type "Debug")
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
# cmake module path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
# We need C++ 17
add_executable( sparsehub )
include(CTest) # note: this adds a BUILD_TESTING which defaults to ON
#------------------------------------------------------------------------------#
# configure library
#------------------------------------------------------------------------------#
add_subdirectory(src)