-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
41 lines (33 loc) · 1.03 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
cmake_minimum_required(VERSION 3.0)
project(LIBTENSOR CXX)
if(NOT LIBUTIL_SOURCE_DIR)
set(LIBUTIL_SOURCE_DIR ${LIBTENSOR_SOURCE_DIR})
endif(NOT LIBUTIL_SOURCE_DIR)
if(NOT LIBTENSOR_DIR)
set(LIBTENSOR_DIR ${LIBTENSOR_SOURCE_DIR})
endif(NOT LIBTENSOR_DIR)
if(NOT LIBUTIL_DIR)
set(LIBUTIL_DIR ${LIBTENSOR_SOURCE_DIR})
endif(NOT LIBUTIL_DIR)
include(cmake/CheckFortranSourceCompiles.cmake)
include(cmake/CheckFortranSourceRuns.cmake)
if(LIBVMM_SOURCE_DIR)
set(HAVE_LIBVMM TRUE)
else(LIBVMM_SOURCE_DIR)
set(HAVE_LIBVMM FALSE)
message(STATUS "Warning: libvmm was not found")
endif(LIBVMM_SOURCE_DIR)
if(LIBTENSOR_STANDALONE)
include(${LIBUTIL_SOURCE_DIR}/cmake/SetupLibUtil.txt)
if(HAVE_LIBVMM)
include(${LIBVMM_SOURCE_DIR}/cmake/SetupLibVmm.txt)
endif(HAVE_LIBVMM)
endif(LIBTENSOR_STANDALONE)
include(cmake/DepsLibTensor.txt)
enable_testing()
if(LIBTENSOR_STANDALONE)
add_subdirectory(libutil)
endif(LIBTENSOR_STANDALONE)
add_subdirectory(libtensor)
add_subdirectory(tests)
#add_subdirectory(performance_tests)