forked from mrirecon/ox-bart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (47 loc) · 1.79 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
cmake_minimum_required(VERSION 3.6)
project(OxBART)
# Uncomment for optional debugging
#set(CMAKE_VERBOSE_MAKEFILE ON)
# TOOLBOX_PATH should be set to the BART path
message("BART Path:" $ENV{TOOLBOX_PATH})
if(DEFINED ENV{TOOLBOX_PATH})
message(STATUS "BART TOOLBOX_PATH defined")
set(TOOLBOX_PATH "$ENV{TOOLBOX_PATH}")
execute_process(COMMAND ${TOOLBOX_PATH}/bart version
RESULT_VARIABLE bart_out)
if(NOT ${bart_out} MATCHES "0")
message(FATAL_ERROR "BART Execution Error: ${bart_out}")
endif()
else()
message(FATAL_ERROR "BART TOOLBOX_PATH environment variable undefined!")
endif()
message("OpenBLAS Path:" $ENV{OPENBLAS_PATH})
if(DEFINED ENV{OPENBLAS_PATH})
message(STATUS "OPENBLAS_PATH defined")
set(OPENBLAS_PATH "$ENV{OPENBLAS_PATH}")
else()
message(FATAL_ERROR "OPENBLAS_PATH environment variable undefined!")
endif()
# TOPDIR is the root of the source tree
set(OX_INSTALL_DIRECTORY "" CACHE PATH "Install directory of the GE Orchestra SDK")
set(TOPDIR "${OX_INSTALL_DIRECTORY}/include")
set(LARGE_LIBRARY_TYPE STATIC)
message("Configuring GE SDK Recon Build")
set(PRODUCT EXTERNAL_SDK)
# Include recon libraries exported from the SDK CMake build
set(RECON_LIBRARIES_INCLUDE_FILE ${OX_INSTALL_DIRECTORY}/lib/ReconLibraries.cmake)
if(EXISTS ${RECON_LIBRARIES_INCLUDE_FILE})
include (${RECON_LIBRARIES_INCLUDE_FILE})
else()
message("Could not find ${RECON_LIBRARIES_INCLUDE_FILE}")
message(FATAL_ERROR "Verify that the CMake OX_INSTALL_DIRECTORY option is set correctly")
endif()
# Include SDK build configuration
include (${TOPDIR}/recon/SDK/product.cmake)
# Include CMakeLists.txt for each rehearsal project
add_subdirectory (BartIO)
add_subdirectory (PfileToBart)
add_subdirectory (ScanArchiveToBart)
add_subdirectory (BartToDicom)
add_subdirectory (NoiseCov)
add_subdirectory (CalibrationData)