#  Difference of Gaussians - Difference of Gaussians Method for nucleus center detection in 3D data 
#  Written in 2015 by BioEmergences CNRS USR bioemergences@inaf.cnrs-gif.fr
#  Barbara Rizzi brizzi08@gmail.com
#  Paul Bourgine paul.bourgine@polytechnique.edu
#
#  To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
#  You should have received a copy of the CC BY-NC-SA 4.0 Dedication along with this software. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode>.


PROJECT(centers_detection)

cmake_minimum_required(VERSION 2.4)

if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)


SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../EXE)


# Find ITK.
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE(FATAL_ERROR "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

FIND_PACKAGE(VTK)
IF(VTK_FOUND)
        INCLUDE(${USE_VTK_FILE})
ELSE(VTK_FOUND)
  MESSAGE(FATAL_ERROR  "Cannot build without VTK.  Please set VTK_DIR.")
ENDIF(VTK_FOUND)

ADD_EXECUTABLE(centers_detection main_centers_detection.cxx centers_detection.txx centers_detection.h timer.h utilities.h)

TARGET_LINK_LIBRARIES(centers_detection ${ITK_LIBRARIES} ${VTK_LIBRARIES})
