-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 1.07 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
# ----------------------------------------------------------------------------
# Root CMake script for Tensor Transpose Library
#
# From the off-tree build directory, invoke:
# $ cmake <PATH_TO_THIS_LIBRARY>
#
# ----------------------------------------------------------------------------
cmake_minimum_required (VERSION 2.8)
project (HPTT)
# Include macros and functions
set(HPTT_CMAKE_SCRIPT_DIR "cmake")
# Find dependencies
# find_package(Doxygen)
find_package(GTest)
# Setting options
include(${HPTT_CMAKE_SCRIPT_DIR}/hptt_config.cmake)
hptt_set_options()
include(${HPTT_CMAKE_SCRIPT_DIR}/hptt_detect_arch.cmake)
hptt_detect_arch()
hptt_set_compiler()
# Call code generation script
include(${HPTT_CMAKE_SCRIPT_DIR}/hptt_code_gen.cmake)
hptt_code_gen_all(${CMAKE_CURRENT_SOURCE_DIR})
# Initialize build targets setting
include(${HPTT_CMAKE_SCRIPT_DIR}/hptt_lib_setting.cmake)
hptt_init_lib_setting()
# Directory setting
include(cmake/hptt_dir_setting.cmake)
hptt_set_dir()
# Installation setting
include(${HPTT_CMAKE_SCRIPT_DIR}/hptt_install.cmake)
hptt_set_header_install()