cmake_minimum_required(VERSION 2.8)

PROJECT(DumpSlideInformation CXX)

FIND_PACKAGE(ITK REQUIRED ITKCommon ITKIOImageBase ITKIOTIFF ITKIOOpenSlide ITKIOJPEG ITKIOPNG)

IF (NOT ITK_FOUND)
  MESSAGE(FATAL_ERROR "ITK is required.")
ENDIF()

INCLUDE(${ITK_USE_FILE})

ADD_DEFINITIONS(-D_USE_MATH_DEFINES=1)

ADD_EXECUTABLE(DumpSlideInformation DumpSlideInformation.cpp)
TARGET_LINK_LIBRARIES(DumpSlideInformation ${ITK_LIBRARIES})


cmake_minimum_required(VERSION 2.8)

project(DumpSlideInformation CXX)

find_package(ITK REQUIRED ITKCommon ITKIOImageBase ITKIOTIFF ITKIOOpenSlide ITKIOJPEG ITKIOPNG)

if (NOT ITK_FOUND)
  message(FATAL_ERROR "ITK is required.")
endif()

include(${ITK_USE_FILE})

add_definitions(-D_USE_MATH_DEFINES=1)

add_executable(DumpSlideInformation DumpSlideInformation.cpp)
target_link_libraries(DumpSlideInformation ${ITK_LIBRARIES})

Use lowercase CMake commands in the example.
STYLE: Use lowercase CMake commands in the example.
