CMakeLists.txt 636 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
# This VTK_DIR usage only works in the VTK build tree...
# Make it work in the "make install" tree, too.
#
INCLUDE("${VTK_DIR}/GUISupport/MFC/VTKMFCSettings.cmake")
IF(VTK_MFC_DELAYLOAD_VTK_DLLS)
  VTK_MFC_ADD_DELAYLOAD_FLAGS(CMAKE_EXE_LINKER_FLAGS
    vtkMFC.dll
    vtkRendering.dll
    vtkIO.dll
    vtkFiltering.dll
    vtkCommon.dll
    )
13
ENDIF()
14

15
SET( vtkMDI_SRCS
16
17
18
19
20
21
22
23
 MainFrm
 ChildFrm
 StdAfx
 vtkMDI
 vtkMDI.rc
 vtkMDIDoc
 vtkMDIView
 res/vtkMDI.rc2
24
)
25

26
ADD_EXECUTABLE(vtkMDI WIN32 ${vtkMDI_SRCS})
27

28
29
IF(VTK_MFC_EXTRA_LIBS)
  TARGET_LINK_LIBRARIES(vtkMDI ${VTK_MFC_EXTRA_LIBS})
30
ENDIF()
31

32
TARGET_LINK_LIBRARIES(vtkMDI ${VTK_LIBRARIES})