-#IF(GGO)
- SET(GENGETOPT gengetopt)
-IF(WIN32)
- SET(GENGETOPT C:/Users/Juan/Downloads/gengetopt)
-ENDIF(WIN32)
- #=========================================================
- # Find ggo (gengetopt) files (http://www.gnu.org/software/gengetopt/)
- FILE(GLOB ALL_GGO_FILES *.ggo)
- #MESSAGE(${ALL_GGO_FILES})
-
- FOREACH(GGO_FILE ${ALL_GGO_FILES})
- #MESSAGE(input=${GGO_FILE})
- STRING(REGEX REPLACE "(.*).ggo"
- "\\1" GGO_BASENAME
- "${GGO_FILE}")
- #MESSAGE( base= ${GGO_BASENAME})
- SET(GGO_H ${GGO_BASENAME}_ggo.h)
- #MESSAGE(${GGO_H})
- SET(GGO_C ${GGO_BASENAME}_ggo.c)
- #MESSAGE(${GGO_C})
- SET(GGO_OUTPUT ${GGO_H} ${GGO_C})
- ADD_CUSTOM_COMMAND(OUTPUT ${GGO_OUTPUT}
- COMMAND ${GENGETOPT}
- ARGS < ${GGO_FILE} --file-name=${GGO_BASENAME}_ggo -u --conf-parser
- DEPENDS ${GGO_FILE}
- )
- ENDFOREACH(GGO_FILE)
-#=========================================================
-#ENDIF(GGO)
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+# pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+# Previous Authors : Laurent Guigues, Jean-Pierre Roux
+# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+#
+# This software is governed by the CeCILL-B license under French law and
+# abiding by the rules of distribution of free software. You can use,
+# modify and/ or redistribute the software under the terms of the CeCILL-B
+# license as circulated by CEA, CNRS and INRIA at the following URL
+# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+# or in the file LICENSE.txt.
+#
+# As a counterpart to the access to the source code and rights to copy,
+# modify and redistribute granted by the license, users are provided only
+# with a limited warranty and the software's author, the holder of the
+# economic rights, and the successive licensors have only limited
+# liability.
+#
+# The fact that you are presently reading this means that you have had
+# knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
-SET(SOURCES main gimmick_ggo.c)
+SET(SOURCES main)
IF(WIN32)
ADD_EXECUTABLE(gimmick ${SOURCES})
ADD_EXECUTABLE(gimmick ${SOURCES})
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( gimmick creaImageIO2)
+TARGET_LINK_LIBRARIES( gimmick creaImageIO )
INSTALL_TARGETS(/bin/ gimmick )