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 2114a1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 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.

0 comments on commit 2114a1c

Please sign in to comment.