forked from UNN-ITMM-Software/mp2-lab2-matrix
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (24 loc) · 717 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (24 loc) · 717 Bytes
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.10)
option(BUILD_SAMPLES ON)
set(PROJECT_NAME matrix)
project(${PROJECT_NAME})
include(CTest)
enable_testing() # defines BUILD_TESTING
set(MP2_TESTS "test_${PROJECT_NAME}")
set(MP2_CUSTOM_PROJECT "${PROJECT_NAME}")
set(MP2_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
add_subdirectory(include)
if(BUILD_SAMPLES)
add_subdirectory(samples)
endif()
if(BUILD_TESTING)
add_subdirectory(gtest)
add_subdirectory(test)
endif()
# REPORT
message( STATUS "")
message( STATUS "General configuration for ${PROJECT_NAME}")
message( STATUS "======================================")
message( STATUS "")
message( STATUS " Configuration: ${CMAKE_BUILD_TYPE}")
message( STATUS "")