Commit fd6bb5c3 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

DICOMParser: update to the new module system

parent db69b897
PROJECT(DICOMParser)
if (WIN32)
if (BUILD_SHARED_LIBS)
set(DICOM_DLL 1)
else ()
set(DICOM_STATIC 1)
endif ()
endif ()
set(DICOM_ANSI_STDLIB 1)
configure_file(DICOMCMakeConfig.h.in DICOMCMakeConfig.h)
set(vtkDICOMParser_LIBRARIES vtkDICOMParser)
vtk_module_export_info()
set(headers
DICOMAppHelper.h
DICOMCallback.h
DICOMConfig.h
DICOMFile.h
DICOMParser.h
DICOMParserMap.h
DICOMTypes.h
"${CMAKE_CURRENT_BINARY_DIR}/DICOMCMakeConfig.h")
INCLUDE_DIRECTORIES(${DICOMParser_SOURCE_DIR})
INCLUDE_DIRECTORIES(${DICOMParser_BINARY_DIR})
set(sources
DICOMAppHelper.cxx
DICOMFile.cxx
DICOMParser.cxx)
IF(WIN32)
IF(BUILD_SHARED_LIBS)
SET(DICOM_DLL 1)
ELSE()
SET(DICOM_STATIC 1)
ENDIF()
ENDIF()
# FIXME: DICOMParser only exports symbols properly on Windows.
unset(CMAKE_CXX_VISIBILITY_PRESET)
unset(CMAKE_VISIBILITY_INLINES_HIDDEN)
SET(DICOM_ANSI_STDLIB 1)
CONFIGURE_FILE(${DICOMParser_SOURCE_DIR}/DICOMCMakeConfig.h.in
${DICOMParser_BINARY_DIR}/DICOMCMakeConfig.h)
VTK_ADD_LIBRARY(vtkDICOMParser DICOMFile.cxx DICOMParser.cxx DICOMAppHelper.cxx)
IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
FILE(GLOB __install_files.h "${DICOMParser_SOURCE_DIR}/*.h")
FILE(GLOB __install_files.txx "${DICOMParser_SOURCE_DIR}/*.h")
INSTALL(FILES
${__install_files.h} ${__install_files.txx}
${DICOMParser_BINARY_DIR}/DICOMCMakeConfig.h
DESTINATION ${VTK_INSTALL_INCLUDE_DIR}
COMPONENT Development)
ENDIF()
vtk_module_add_module(VTK::DICOMParser
SOURCES ${sources}
HEADERS ${headers})
vtk_module_compile_features(VTK::DICOMParser
PUBLIC
cxx_std_11)
......@@ -48,7 +48,7 @@
#endif
#ifdef DICOM_DLL
#ifdef DICOM_EXPORT_SYMBOLS
#ifdef DICOMParser_EXPORTS
#define DICOM_EXPORT __declspec(dllexport)
#define DICOM_EXPIMP_TEMPLATE
#else
......
vtk_module(vtkDICOMParser
EXCLUDE_FROM_WRAPPING
DEPENDS
vtksys
)
\ No newline at end of file
NAME
VTK::DICOMParser
LIBRARY_NAME
vtkDICOMParser
PRIVATE_DEPENDS
VTK::vtksys
EXCLUDE_WRAP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment