cmake_minimum_required(VERSION 2.6)

PROJECT (Exercice2)

INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
  INCLUDE(${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)

LINK_LIBRARIES( 
  vtkHybrid
)

OPTION(BUILD_ANSWERS "Build answers" OFF)

ADD_EXECUTABLE(exercice2 MACOSX_BUNDLE exercice2.cxx)

IF(BUILD_ANSWERS)
  ADD_EXECUTABLE(exercice2Answer MACOSX_BUNDLE exercice2_answer.cxx)
ENDIF(BUILD_ANSWERS)