CMakeLists.txt 3.69 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
)
17
18

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

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

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)
100
  enable_unity_build(HistogramData SRC_FILES SRC_UNITY_IGNORE_FILES 10)
101
102
103
endif(UNITY_BUILD)

# Add the target for this directory
104
add_library ( HistogramData ${SRC_FILES} ${INC_FILES} )
105
# Set the name of the generated library
106
107
set_target_properties ( HistogramData PROPERTIES OUTPUT_NAME MantidHistogramData
  COMPILE_DEFINITIONS IN_MANTID_HISTOGRAMDATA )
108
109

if (OSX_VERSION VERSION_GREATER 10.8)
110
  set_target_properties ( HistogramData PROPERTIES INSTALL_RPATH "@loader_path/../MacOS")
111
112
113
endif ()

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

116
117
target_link_libraries ( HistogramData LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} 
                        ${GSL_LIBRARIES} ${MANTIDLIBS} )
118
119
120
121
122
123
124
125

# Add the unit tests directory
add_subdirectory ( test )

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

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