CMakeLists.txt 3.42 KB
Newer Older
1
set ( SRC_FILES
2
	src/BinEdges.cpp
3
4
	src/CountStandardDeviations.cpp
	src/CountVariances.cpp
5
6
	src/Counts.cpp
	src/Frequencies.cpp
7
8
	src/FrequencyStandardDeviations.cpp
	src/FrequencyVariances.cpp
9
	src/Histogram.cpp
10
	src/HistogramMath.cpp
Dimitar Tasev's avatar
Dimitar Tasev committed
11
	src/Rebin.cpp
12
13
	src/Points.cpp
)
14
15

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

set ( TEST_FILES
51
	AddableTest.h
52
	BinEdgesTest.h
53
54
	CountStandardDeviationsTest.h
	CountVariancesTest.h
55
	CountsTest.h
56
	EValidationTest.h
57
	FixedLengthVectorTest.h
58
	FrequenciesTest.h
59
60
	FrequencyStandardDeviationsTest.h
	FrequencyVariancesTest.h
61
	HistogramDxTest.h
62
	HistogramETest.h
63
	HistogramMathTest.h
Dimitar Tasev's avatar
Dimitar Tasev committed
64
	RebinTest.h
65
66
	HistogramTest.h
	HistogramXTest.h
67
	HistogramYTest.h
68
	IterableTest.h
69
	LinearGeneratorTest.h
70
	LogarithmicGeneratorTest.h
71
	MultipliableTest.h
72
	OffsetableTest.h
73
	PointStandardDeviationsTest.h
74
	PointVariancesTest.h
75
76
	PointsTest.h
	ScalableTest.h
77
78
	StandardDeviationVectorOfTest.h
	VarianceVectorOfTest.h
79
	VectorOfTest.h
80
	XValidationTest.h
81
	YValidationTest.h
82
)
83
84
85
86
87
88
89
90
91

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)
92
  enable_unity_build(HistogramData SRC_FILES SRC_UNITY_IGNORE_FILES 10)
93
94
95
endif(UNITY_BUILD)

# Add the target for this directory
96
add_library ( HistogramData ${SRC_FILES} ${INC_FILES} )
97
# Set the name of the generated library
98
99
set_target_properties ( HistogramData PROPERTIES OUTPUT_NAME MantidHistogramData
  COMPILE_DEFINITIONS IN_MANTID_HISTOGRAMDATA )
100
101

if (OSX_VERSION VERSION_GREATER 10.8)
102
  set_target_properties ( HistogramData PROPERTIES INSTALL_RPATH "@loader_path/../MacOS")
103
104
105
endif ()

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

108
target_link_libraries ( HistogramData LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS} )
109
110
111
112
113
114
115
116

# Add the unit tests directory
add_subdirectory ( test )

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

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