project (nome_projeto) cmake_minimum_required (VERSION 2.6) # Print all type of warnings and ommit messages about deprecated inclusion. set (CMAKE_CXX_FLAGS "-Wall -Wno-deprecated" CACHE string "Flags used by the compiler during all build types." FORCE ) # The same above, but for C compilers now. set (CMAKE_C_FLAGS "-Wall -Wno-deprecated" CACHE string "Flags used by the compiler during all build types." FORCE ) # Código-fonte do projeto. set (NOMEPROJETO_SRCS nome_arquivo_fonte.cpp) # Encontra e usa o VTK. find_package (VTK REQUIRED) if (VTK_FOUND) include (${VTK_USE_FILE}) endif (VTK_FOUND) if (NOT VTK_USE_RENDERING) message (FATAL_ERROR "Program ${PROJECT_NAME} requires VTK_USE_RENDERING.") endif (NOT VTK_USE_RENDERING) set (VTK_LIBRARIES vtkCommon vtkDICOMParser vtkFiltering vtkftgl vtkGenericFiltering vtkGraphics vtkHybrid vtkImaging vtkIO vtkParallel vtkRendering vtksys vtkVolumeRendering vtkWidgets) # Search for and use ITK. #find_package (ITK REQUIRED) #if (ITK_FOUND) # include (${ITK_USE_FILE}) #endif (ITK_FOUND) # Encontra o pkg-config para configuração automática. find_package (PkgConfig) #pkg_check_modules (GTKGLEXT REQUIRED gtkglext-1.0) #pkg_check_modules (LIBGLADEMM REQUIRED libglademm-2.4) # Diretórios para inclusão dos cabeçalhos. #include_directories ( # ${GTKGLEXT_INCLUDE_DIRS} # ${LIBGLADEMM_INCLUDE_DIRS} # ${ITK_INCLUDE_DIRS}) #message (ITK_INCLUDE_DIRS = ${ITK_INCLUDE_DIRS}) # Executáveis a serem gerados a partir dos fontes. add_executable (nome_arquivo_executavel ${PLOTVECTORLINE_SRCS}) # Bibliotecas a serem geradas após ligação. target_link_libraries (nome_projeto # ${GTKGLEXT_LIBRARIES} # ${LIBGLADEMM_LIBRARIES} ${VTK_LIBRARIES} # ${ITK_LIBRARIES} ) #target_link_libraries (analyzeReader)