Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.6)
- FIND_PACKAGE(Qt4 REQUIRED)
- INCLUDE(${QT_USE_FILE})
- FIND_PACKAGE(VTK REQUIRED)
- IF (USE_VTK_FILE)
- INCLUDE(${USE_VTK_FILE})
- ENDIF (USE_VTK_FILE)
- SET(SOURCES_CPP main.cpp mainwindow.cpp )
- SET(SOURCES_H mainwindow.h )
- SET(MOC_SOURCES_H mainwindow.h )
- SET(SOURCES_UI mainwindow.ui )
- QT4_WRAP_UI( UIS_H ${SOURCES_UI} )
- # After this call, foo_MOC_SRCS = moc_Class1.cxx moc_Class2.cxx moc_Class3.cxx.
- QT4_WRAP_CPP( MOC_SRCS ${MOC_SOURCES_H} )
- # Don't forget to include output directory, otherwise
- # the UI file won't be wrapped!
- include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
- ADD_EXECUTABLE( ResizeBug ${SOURCES_CPP} ${SOURCES_H} ${MOC_SRCS} ${UIS_H} )
- TARGET_LINK_LIBRARIES( ResizeBug
- ${QT_QTGUI_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTMAIN_LIBRARY}
- vtkRendering QVTK )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement