Skip to content

Instantly share code, notes, and snippets.

@jeffbaumes
Created May 8, 2014 00:46
Show Gist options
  • Save jeffbaumes/33adb3ff52f5c6384f02 to your computer and use it in GitHub Desktop.
Save jeffbaumes/33adb3ff52f5c6384f02 to your computer and use it in GitHub Desktop.
Minimal VTK and Qt project
cmake_minimum_required(VERSION 2.8)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package(Qt4 REQUIRED)
include(${QT_USE_FILE})
add_executable(main main.cxx)
target_link_libraries(main ${VTK_LIBRARIES} ${QT_QTGUI_LIBRARY})
#include <QVTKWidget.h>
int main()
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment