Skip to content

Commit a3addd2

Browse files
Merge pull request mantidproject#38531 from peterfpeterson/38457_sinq_system_h
Switch Framework/SINQ to generated DllConfig.h
2 parents cc1d371 + e346929 commit a3addd2

16 files changed

+16
-48
lines changed

Framework/SINQ/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include(GenerateExportHeader)
2+
13
set(SRC_FILES
24
src/InvertMDDim.cpp
35
src/LoadFlexiNexus.cpp
@@ -41,7 +43,6 @@ set(SRC_FILES
4143
)
4244

4345
set(INC_FILES
44-
inc/MantidSINQ/DllConfig.h
4546
inc/MantidSINQ/InvertMDDim.h
4647
inc/MantidSINQ/LoadFlexiNexus.h
4748
inc/MantidSINQ/MDHistoToWorkspace2D.h
@@ -154,6 +155,12 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
154155
set_target_properties(SINQ PROPERTIES INSTALL_RPATH "\$ORIGIN/../${LIB_DIR}")
155156
endif()
156157

158+
# Auto-generate exports header
159+
target_include_directories(
160+
SINQ PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/Framework/SINQ> $<INSTALL_INTERFACE:include/Mantid>
161+
)
162+
generate_mantid_export_header(SINQ False)
163+
157164
# Add to the 'Framework' group in VS
158165
set_property(TARGET SINQ PROPERTY FOLDER "MantidFramework")
159166

Framework/SINQ/inc/MantidSINQ/DllConfig.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks1D.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#pragma once
88

99
#include "MantidAPI/Algorithm.h"
10-
#include "MantidKernel/System.h"
11-
1210
#include "MantidAPI/IPeakFunction.h"
1311
#include "MantidAPI/TableRow.h"
1412
#include "MantidDataObjects/TableWorkspace.h"

Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks1D2.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#pragma once
88

99
#include "MantidAPI/Algorithm.h"
10-
#include "MantidKernel/System.h"
11-
1210
#include "MantidAPI/IPeakFunction.h"
1311
#include "MantidAPI/TableRow.h"
1412
#include "MantidAPI/WorkspaceGroup_fwd.h"

Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks2D.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "MantidAPI/IFunction.h"
1111
#include "MantidAPI/IPeakFunction.h"
1212
#include "MantidGeometry/Crystal/PointGroup.h"
13-
#include "MantidKernel/System.h"
1413
#include "MantidSINQ/DllConfig.h"
1514

1615
#include "MantidKernel/Matrix.h"

Framework/SINQ/inc/MantidSINQ/PoldiPeakSearch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "MantidSINQ/DllConfig.h"
1010

1111
#include "MantidAPI/Algorithm.h"
12-
#include "MantidKernel/System.h"
1312
#include "MantidKernel/Unit.h"
1413
#include "MantidKernel/V2D.h"
1514

Framework/SINQ/inc/MantidSINQ/PoldiTruncateData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#pragma once
88

99
#include "MantidAPI/Algorithm.h"
10-
#include "MantidKernel/System.h"
10+
#include "MantidSINQ/DllConfig.h"
1111

1212
#include "MantidSINQ/PoldiUtilities/PoldiAbstractChopper.h"
1313

Framework/SINQ/inc/MantidSINQ/PoldiUtilities/Poldi2DFunction.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "MantidAPI/CompositeFunction.h"
1010
#include "MantidAPI/IFunction1DSpectrum.h"
11-
#include "MantidKernel/System.h"
1211
#include "MantidSINQ/DllConfig.h"
1312
#include "MantidSINQ/PoldiUtilities/IPoldiFunction1D.h"
1413

Framework/SINQ/inc/MantidSINQ/PoldiUtilities/PoldiAutoCorrelationCore.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// SPDX - License - Identifier: GPL - 3.0 +
77
#pragma once
88

9-
#include "MantidKernel/System.h"
10-
119
#include "MantidSINQ/DllConfig.h"
1210

1311
#include "MantidSINQ/PoldiUtilities/PoldiAbstractChopper.h"

Framework/SINQ/inc/MantidSINQ/PoldiUtilities/PoldiBasicChopper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// SPDX - License - Identifier: GPL - 3.0 +
77
#pragma once
88

9-
#include "MantidKernel/System.h"
10-
119
#include "MantidSINQ/DllConfig.h"
1210
#include "MantidSINQ/PoldiUtilities/PoldiAbstractChopper.h"
1311

0 commit comments

Comments
 (0)