Commit 7c25c44d authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkGUISupportMFC: update to the new module system

parent 51ec3e30
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/VTKMFCSettings.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/VTKMFCSettings.cmake"
COPYONLY
)
include("${CMAKE_CURRENT_BINARY_DIR}/VTKMFCSettings.cmake")
include("${CMAKE_CURRENT_SOURCE_DIR}/VTKMFCSettings.cmake")
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/vtkMFCConfigure.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/vtkMFCConfigure.h"
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(MFC_SRCS
vtkMFCWindow.cpp
)
set(MFC_HDRS
vtkMFCWindow.h
)
vtk_module_library(${vtk-module} ${VTK_MFC_LIB_TYPE} ${MFC_SRCS})
vtk_module_add_module(VTK::GUISupportMFC
SOURCES ${MFC_SRCS}
HEADERS ${MFC_HDRS}
"${CMAKE_CURRENT_BINARY_DIR}/vtkMFCConfigure.h")
if(VTK_MFC_EXTRA_LIBS)
vtk_module_link_libraries(${vtk-module} LINK_PRIVATE ${VTK_MFC_EXTRA_LIBS})
endif()
if(WIN32)
if(NOT VTK_INSTALL_NO_DEVELOPMENT)
file(GLOB vtkMFCHeaderFiles "*.h")
set(vtkMFCHeaderFiles ${vtkMFCHeaderFiles}
"${CMAKE_CURRENT_BINARY_DIR}/vtkMFCConfigure.h")
install(FILES ${vtkMFCHeaderFiles}
DESTINATION ${VTK_INSTALL_INCLUDE_DIR}
COMPONENT Development
)
endif()
vtk_module_link(VTK::GUISupportMFC PRIVATE ${VTK_MFC_EXTRA_LIBS})
endif()
# only add this module if we are on a windows platform
if(WIN32)
vtk_module(vtkGUISupportMFC
GROUPS
EXCLUDE_FROM_WRAPPING
DEPENDS
vtkRenderingOpenGL2
)
endif()
NAME
VTK::GUISupportMFC
LIBRARY_NAME
vtkGUISupportMFC
CONDITION
WIN32
DEPENDS
VTK::RenderingOpenGL2
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