Skip to content

Commit

Permalink
Switch to generated DllConfig.h
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Dec 17, 2024
1 parent c95bf2a commit 1d60eb1
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 41 deletions.
9 changes: 8 additions & 1 deletion Framework/SINQ/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(GenerateExportHeader)

set(SRC_FILES
src/InvertMDDim.cpp
src/LoadFlexiNexus.cpp
Expand Down Expand Up @@ -41,7 +43,6 @@ set(SRC_FILES
)

set(INC_FILES
inc/MantidSINQ/DllConfig.h
inc/MantidSINQ/InvertMDDim.h
inc/MantidSINQ/LoadFlexiNexus.h
inc/MantidSINQ/MDHistoToWorkspace2D.h
Expand Down Expand Up @@ -154,6 +155,12 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set_target_properties(SINQ PROPERTIES INSTALL_RPATH "\$ORIGIN/../${LIB_DIR}")
endif()

# Auto-generate exports header
target_include_directories(
SINQ PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/Framework/SINQ> $<INSTALL_INTERFACE:include/Mantid>
)
generate_mantid_export_header(SINQ False)

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

Expand Down
21 changes: 0 additions & 21 deletions Framework/SINQ/inc/MantidSINQ/DllConfig.h

This file was deleted.

2 changes: 0 additions & 2 deletions Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks1D.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#pragma once

#include "MantidAPI/Algorithm.h"
#include "MantidKernel/System.h"

#include "MantidAPI/IPeakFunction.h"
#include "MantidAPI/TableRow.h"
#include "MantidDataObjects/TableWorkspace.h"
Expand Down
2 changes: 0 additions & 2 deletions Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks1D2.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#pragma once

#include "MantidAPI/Algorithm.h"
#include "MantidKernel/System.h"

#include "MantidAPI/IPeakFunction.h"
#include "MantidAPI/TableRow.h"
#include "MantidAPI/WorkspaceGroup_fwd.h"
Expand Down
1 change: 0 additions & 1 deletion Framework/SINQ/inc/MantidSINQ/PoldiFitPeaks2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "MantidAPI/IFunction.h"
#include "MantidAPI/IPeakFunction.h"
#include "MantidGeometry/Crystal/PointGroup.h"
#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"

#include "MantidKernel/Matrix.h"
Expand Down
1 change: 0 additions & 1 deletion Framework/SINQ/inc/MantidSINQ/PoldiPeakSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "MantidSINQ/DllConfig.h"

#include "MantidAPI/Algorithm.h"
#include "MantidKernel/System.h"
#include "MantidKernel/Unit.h"
#include "MantidKernel/V2D.h"

Expand Down
2 changes: 1 addition & 1 deletion Framework/SINQ/inc/MantidSINQ/PoldiTruncateData.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#pragma once

#include "MantidAPI/Algorithm.h"
#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"

#include "MantidSINQ/PoldiUtilities/PoldiAbstractChopper.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "MantidAPI/CompositeFunction.h"
#include "MantidAPI/IFunction1DSpectrum.h"
#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"
#include "MantidSINQ/PoldiUtilities/IPoldiFunction1D.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"

#include "MantidSINQ/DllConfig.h"

#include "MantidSINQ/PoldiUtilities/PoldiAbstractChopper.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"

#include "MantidSINQ/DllConfig.h"
#include "MantidSINQ/PoldiUtilities/PoldiDetectorDecorator.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"

#include "MantidSINQ/PoldiUtilities/PoldiAbstractDetector.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAPI/Run.h"
#include "MantidGeometry/Instrument.h"
#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"

#include <map>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once

#include "MantidKernel/System.h"
#include "MantidSINQ/DllConfig.h"
#include "MantidSINQ/PoldiUtilities/PoldiConversions.h"
#include "MantidSINQ/PoldiUtilities/PoldiInstrumentAdapter.h"
Expand Down

0 comments on commit 1d60eb1

Please sign in to comment.