CMakeLists.txt 3.95 KB
Newer Older
1
set ( SRC_FILES
2
	src/BinEdges.cpp
3
4
	src/CountStandardDeviations.cpp
	src/CountVariances.cpp
5
	src/Counts.cpp
6
	src/Exception.cpp
7
	src/Frequencies.cpp
8
9
	src/FrequencyStandardDeviations.cpp
	src/FrequencyVariances.cpp
10
	src/Histogram.cpp
11
	src/HistogramBuilder.cpp
12
	src/HistogramMath.cpp
13
	src/Interpolate.cpp
14
	src/Points.cpp
15
	src/Rebin.cpp
16
	src/Slice.cpp
17
)
18
19

set ( INC_FILES
20
	inc/MantidHistogramData/Addable.h
21
	inc/MantidHistogramData/BinEdges.h
22
23
	inc/MantidHistogramData/CountStandardDeviations.h
	inc/MantidHistogramData/CountVariances.h
24
	inc/MantidHistogramData/Counts.h
25
	inc/MantidHistogramData/EValidation.h
26
	inc/MantidHistogramData/Exception.h
27
	inc/MantidHistogramData/FixedLengthVector.h
28
	inc/MantidHistogramData/Frequencies.h
29
30
	inc/MantidHistogramData/FrequencyStandardDeviations.h
	inc/MantidHistogramData/FrequencyVariances.h
31
	inc/MantidHistogramData/Histogram.h
32
	inc/MantidHistogramData/HistogramBuilder.h
33
	inc/MantidHistogramData/HistogramDx.h
34
	inc/MantidHistogramData/HistogramE.h
35
36
        inc/MantidHistogramData/HistogramItem.h
        inc/MantidHistogramData/HistogramIterator.h
37
	inc/MantidHistogramData/HistogramMath.h
38
	inc/MantidHistogramData/HistogramX.h
39
	inc/MantidHistogramData/HistogramY.h
40
	inc/MantidHistogramData/Interpolate.h
41
	inc/MantidHistogramData/Iterable.h
42
	inc/MantidHistogramData/LinearGenerator.h
43
	inc/MantidHistogramData/LogarithmicGenerator.h
44
	inc/MantidHistogramData/Multipliable.h
45
	inc/MantidHistogramData/Offsetable.h
46
	inc/MantidHistogramData/PointStandardDeviations.h
47
	inc/MantidHistogramData/PointVariances.h
48
	inc/MantidHistogramData/Points.h
49
	inc/MantidHistogramData/Rebin.h
50
	inc/MantidHistogramData/Scalable.h
51
	inc/MantidHistogramData/Slice.h
52
	inc/MantidHistogramData/StandardDeviationVectorOf.h
53
	inc/MantidHistogramData/Validation.h
54
	inc/MantidHistogramData/VarianceVectorOf.h
55
	inc/MantidHistogramData/VectorOf.h
56
	inc/MantidHistogramData/XValidation.h
57
	inc/MantidHistogramData/YValidation.h
58
)
59
60

set ( TEST_FILES
61
	AddableTest.h
62
	BinEdgesTest.h
63
64
	CountStandardDeviationsTest.h
	CountVariancesTest.h
65
	CountsTest.h
66
	EValidationTest.h
67
	FixedLengthVectorTest.h
68
	FrequenciesTest.h
69
70
	FrequencyStandardDeviationsTest.h
	FrequencyVariancesTest.h
71
	HistogramBuilderTest.h
72
	HistogramDxTest.h
73
	HistogramETest.h
74
        HistogramIteratorTest.h
75
	HistogramMathTest.h
76
77
	HistogramTest.h
	HistogramXTest.h
78
	HistogramYTest.h
79
	InterpolateTest.h
80
	IterableTest.h
81
	LinearGeneratorTest.h
82
	LogarithmicGeneratorTest.h
83
	MultipliableTest.h
84
	OffsetableTest.h
85
	PointStandardDeviationsTest.h
86
	PointVariancesTest.h
87
	PointsTest.h
88
	RebinTest.h
89
	ScalableTest.h
90
	SliceTest.h
91
92
	StandardDeviationVectorOfTest.h
	VarianceVectorOfTest.h
93
	VectorOfTest.h
94
	XValidationTest.h
95
	YValidationTest.h
96
)
97
98
99
100
101
102
103
104
105

if (COVERALLS)
  foreach( loop_var ${SRC_FILES} ${INC_FILES})
    set_property(GLOBAL APPEND PROPERTY COVERAGE_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
  endforeach(loop_var)
endif()

if(UNITY_BUILD)
  include(UnityBuild)
106
  enable_unity_build(HistogramData SRC_FILES SRC_UNITY_IGNORE_FILES 10)
107
108
109
endif(UNITY_BUILD)

# Add the target for this directory
110
add_library ( HistogramData ${SRC_FILES} ${INC_FILES} )
111
# Set the name of the generated library
112
113
set_target_properties ( HistogramData PROPERTIES OUTPUT_NAME MantidHistogramData
  COMPILE_DEFINITIONS IN_MANTID_HISTOGRAMDATA )
114
115

if (OSX_VERSION VERSION_GREATER 10.8)
116
  set_target_properties ( HistogramData PROPERTIES INSTALL_RPATH "@loader_path/../MacOS")
117
118
119
endif ()

# Add to the 'Framework' group in VS
120
set_property ( TARGET HistogramData PROPERTY FOLDER "MantidFramework" )
121

122
target_include_directories ( HistogramData PUBLIC ${Boost_INCLUDE_DIRS})
123
124
target_link_libraries ( HistogramData LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} 
                        ${GSL_LIBRARIES} ${MANTIDLIBS} )
125
126
127
128
129
130
131
132

# Add the unit tests directory
add_subdirectory ( test )

###########################################################################
# Installation settings
###########################################################################

133
install ( TARGETS HistogramData ${SYSTEM_PACKAGE_TARGET} DESTINATION ${LIB_DIR} )