From 58b81f41c107f2b451ace2dc378f13a4b8447aa3 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Thu, 22 Apr 2010 17:20:39 +0000 Subject: [PATCH 1/1] Unify with new CreaNewProject --- appli/CMakeLists.txt | 2 +- appli/template_appli/CMakeLists.txt | 21 +++++++++++++++++++++ appli/testBruker2Dicom/testBruker2Dicom.cxx | 12 ++++++------ 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt index 6d4daf3..16fb470 100644 --- a/appli/CMakeLists.txt +++ b/appli/CMakeLists.txt @@ -1,4 +1,4 @@ -# Add a SUBDIRS command for each of your applications +# Add a SUBDIRS command for each one of your applications # SUBDIRS(MyApp1) # SUBDIRS(MyApp2) SUBDIRS( diff --git a/appli/template_appli/CMakeLists.txt b/appli/template_appli/CMakeLists.txt index 020be7e..30619a8 100644 --- a/appli/template_appli/CMakeLists.txt +++ b/appli/template_appli/CMakeLists.txt @@ -1,18 +1,34 @@ #---------------------------------------------------------------------------- # SET THE NAME OF YOUR EXECUTABLE +# Replace 'MyExe' by the name you want to give your executable. +# (a good policy is to give the executable the same name that the directory) + +######################### SET ( EXE_NAME MyExe ) +######################### + #---------------------------------------------------------------------------- #---------------------------------------------------------------------------- # EXECUTABLE SOURCES (TO BE COMPILED) # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE: + FILE(GLOB ${EXE_NAME}_SOURCES *.cxx *.cpp *.cc) + # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION) # SET ( ${EXE_NAME}_SOURCES # # ) #---------------------------------------------------------------------------- +INCLUDE_DIRECTORIES ( + +# Add here the directories holding th extra .h files you need +# e.g. +# ../../lib/ + +) + #---------------------------------------------------------------------------- # DEPENDENCIES (LIBRARIES TO LINK WITH) SET ( ${EXE_NAME}_LINK_LIBRARIES @@ -23,6 +39,11 @@ SET ( ${EXE_NAME}_LINK_LIBRARIES # ${ITK_LIBRARIES} # ${GDCM_LIBRARIES} # ${BOOST_LIBRARIES} + + # Add here those agmonst the various (?) PROJECT LIBRARIES + # you need for the current executable + # (If you created only one Library, don't forget it !...) + ) #---------------------------------------------------------------------------- diff --git a/appli/testBruker2Dicom/testBruker2Dicom.cxx b/appli/testBruker2Dicom/testBruker2Dicom.cxx index c8b0552..bcadbc5 100644 --- a/appli/testBruker2Dicom/testBruker2Dicom.cxx +++ b/appli/testBruker2Dicom/testBruker2Dicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: testBruker2Dicom.cxx,v $ Language: C++ - Date: $Date: 2010/03/03 11:07:58 $ - Version: $Revision: 1.9 $ + Date: $Date: 2010/04/22 17:20:41 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -90,10 +90,10 @@ int main(int argc, char *argv[]) " \n testBruker2Dicom : \n ", " - explores the given directory (holding a FULL Bruker exam), at the 3 levels,", " - fills an equivalent Directory with the MHD files and/or the DICOM files", - " usage: testBruker2Dicom --dirin=rootDirectoryName ", - " --dirout=outputDirectoryName ", - " [-D] [-M] ", - " [{-b|-l}] b:BigEndian,l:LittleEndian default : l ", + " usage: testBruker2Dicom --dirin=rootDirectoryName ", + " --dirout=outputDirectoryName ", + " [-D] [-M] ", + " [{-b|-l}] b:BigEndian,l:LittleEndian default : l ", " [--debug] [--verbose] [--listonly] [--usage] ", " ", " D : user wants to export as DICOM ", -- 2.45.1