forked from BRAINSia/BRAINSTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·91 lines (77 loc) · 2.2 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
project(DWIConvert)
#-----------------------------------------------------------------------------
# Dependencies.
#
#
# ITK
#
FindITKUtil( DWIConvert_ITK
ITKImageIntensity
ITKImageStatistics
ITKTestKernel
ITKIODCMTK
ITKIORAW
ITKDCMTK
ITKNrrdIO
)
#-----------------------------------------------------------------------------
enable_testing()
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_MODULE_PATH})
set(DWIConvertSupportLib_SRCS
# FSLToNrrd.cxx
# NrrdToFSL.cxx
NRRDDWIConverter.h
NRRDDWIConverter.cxx
FSLDWIConverter.h
FSLDWIConverter.cxx
DWIConvertUtils.h
DWIConvertUtils.cxx
DWIConverterFactory.h
DWIConverterFactory.cxx
DWIConverter.h
DWIConverter.cxx
DWIDICOMConverterBase.h
DWIDICOMConverterBase.cxx
GEDWIConverter.h
GenericDWIConverter.h
HitachiDWIConverter.h
PhilipsDWIConverter.h
SiemensDWIConverter.h
StringContains.h
GEDWIConverter.cxx
GenericDWIConverter.cxx
HitachiDWIConverter.cxx
PhilipsDWIConverter.cxx
SiemensDWIConverter.cxx
SiemensDWIConverter.hxx
DWIConvertLib.cxx
DWIConvertLib.h)
set(MODULE_FOLDER "Module-DWIConvert")
add_library(DWIConvertSupportLib STATIC ${DWIConvertSupportLib_SRCS})
target_link_libraries(DWIConvertSupportLib ${DWIConvert_ITK_LIBRARIES} BRAINSCommonLib)
set_target_properties(DWIConvertSupportLib PROPERTIES FOLDER ${MODULE_FOLDER})
set(PROGS_LIST_1
Convert4DImageTo3DSeries
)
foreach(prog ${PROGS_LIST_1})
add_executable(${prog} ${prog}.cxx)
target_link_libraries(${prog} DWIConvertSupportLib)
set_target_properties(${prog} PROPERTIES FOLDER ${MODULE_FOLDER})
endforeach()
#-----------------------------------------------------------------------------
# SEMMacroBuildCLI(
# NAME ${MODULE_NAME}
# LOGO_HEADER ${Slicer_SOURCE_DIR}/Resources/NAMICLogo.h
# TARGET_LIBRARIES DWIConvertSupportLib
# )
# several files needed down in ExtenededTesting
StandardBRAINSBuildMacro(NAME DWIConvert EXECUTABLE_ONLY
TARGET_LIBRARIES DWIConvertSupportLib)
set(DWIConvertTest_SRC)
foreach(f ${DWIConvertSupportLib_SRCS})
list(APPEND DWIConvertTest_SRC
${CMAKE_CURRENT_LIST_DIR}/${f})
endforeach()
if(BUILD_TESTING AND NOT BRAINSTools_DISABLE_TESTING)
add_subdirectory(TestSuite)
endif()