]> Creatis software - clitk.git/commitdiff
Sync gengetopt cmake files with rtk
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 28 Sep 2012 13:03:17 +0000 (15:03 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 28 Sep 2012 13:03:17 +0000 (15:03 +0200)
98 files changed:
cmake/FindGengetopt.cmake
utilities/gengetopt/CMakeLists.txt [moved from cmake/gengetopt/CMakeLists.txt with 100% similarity]
utilities/gengetopt/Makefile.am [moved from cmake/gengetopt/Makefile.am with 100% similarity]
utilities/gengetopt/acceptedvalues.cpp [moved from cmake/gengetopt/acceptedvalues.cpp with 100% similarity]
utilities/gengetopt/acceptedvalues.h [moved from cmake/gengetopt/acceptedvalues.h with 100% similarity]
utilities/gengetopt/argsdef.c [moved from cmake/gengetopt/argsdef.c with 100% similarity]
utilities/gengetopt/argsdef.h [moved from cmake/gengetopt/argsdef.h with 100% similarity]
utilities/gengetopt/cmdline.c [moved from cmake/gengetopt/cmdline.c with 100% similarity]
utilities/gengetopt/cmdline.ggo [moved from cmake/gengetopt/cmdline.ggo with 100% similarity]
utilities/gengetopt/cmdline.h [moved from cmake/gengetopt/cmdline.h with 100% similarity]
utilities/gengetopt/errorcodes.h [moved from cmake/gengetopt/errorcodes.h with 100% similarity]
utilities/gengetopt/fileutils.cpp [moved from cmake/gengetopt/fileutils.cpp with 100% similarity]
utilities/gengetopt/fileutils.h [moved from cmake/gengetopt/fileutils.h with 100% similarity]
utilities/gengetopt/gengetopt.cc [moved from cmake/gengetopt/gengetopt.cc with 100% similarity]
utilities/gengetopt/gengetopt.h [moved from cmake/gengetopt/gengetopt.h with 100% similarity]
utilities/gengetopt/getopt.c [moved from cmake/gengetopt/getopt.c with 100% similarity]
utilities/gengetopt/getopt.h [moved from cmake/gengetopt/getopt.h with 100% similarity]
utilities/gengetopt/getopt1.c [moved from cmake/gengetopt/getopt1.c with 100% similarity]
utilities/gengetopt/ggo_options.h [moved from cmake/gengetopt/ggo_options.h with 100% similarity]
utilities/gengetopt/ggos.cpp [moved from cmake/gengetopt/ggos.cpp with 100% similarity]
utilities/gengetopt/ggos.h [moved from cmake/gengetopt/ggos.h with 100% similarity]
utilities/gengetopt/global_opts.h [moved from cmake/gengetopt/global_opts.h with 100% similarity]
utilities/gengetopt/globals.cpp [moved from cmake/gengetopt/globals.cpp with 100% similarity]
utilities/gengetopt/globals.h [moved from cmake/gengetopt/globals.h with 100% similarity]
utilities/gengetopt/gm.cc [moved from cmake/gengetopt/gm.cc with 100% similarity]
utilities/gengetopt/gm.h [moved from cmake/gengetopt/gm.h with 100% similarity]
utilities/gengetopt/gm_utils.cpp [moved from cmake/gengetopt/gm_utils.cpp with 100% similarity]
utilities/gengetopt/gm_utils.h [moved from cmake/gengetopt/gm_utils.h with 100% similarity]
utilities/gengetopt/groups.h [moved from cmake/gengetopt/groups.h with 100% similarity]
utilities/gengetopt/my_map.h [moved from cmake/gengetopt/my_map.h with 100% similarity]
utilities/gengetopt/my_sstream.h [moved from cmake/gengetopt/my_sstream.h with 100% similarity]
utilities/gengetopt/my_string.h [moved from cmake/gengetopt/my_string.h with 100% similarity]
utilities/gengetopt/parser.cc [moved from cmake/gengetopt/parser.cc with 100% similarity]
utilities/gengetopt/parser.h [moved from cmake/gengetopt/parser.h with 100% similarity]
utilities/gengetopt/parser.yy [moved from cmake/gengetopt/parser.yy with 100% similarity]
utilities/gengetopt/scanner.cc [moved from cmake/gengetopt/scanner.cc with 100% similarity]
utilities/gengetopt/skels/Makefile.am [moved from cmake/gengetopt/skels/Makefile.am with 100% similarity]
utilities/gengetopt/skels/c_source.cc [moved from cmake/gengetopt/skels/c_source.cc with 100% similarity]
utilities/gengetopt/skels/c_source.h [moved from cmake/gengetopt/skels/c_source.h with 100% similarity]
utilities/gengetopt/skels/check_modes.cc [moved from cmake/gengetopt/skels/check_modes.cc with 100% similarity]
utilities/gengetopt/skels/check_modes.h [moved from cmake/gengetopt/skels/check_modes.h with 100% similarity]
utilities/gengetopt/skels/clear_arg.cc [moved from cmake/gengetopt/skels/clear_arg.cc with 100% similarity]
utilities/gengetopt/skels/clear_arg.h [moved from cmake/gengetopt/skels/clear_arg.h with 100% similarity]
utilities/gengetopt/skels/clear_given.cc [moved from cmake/gengetopt/skels/clear_given.cc with 100% similarity]
utilities/gengetopt/skels/clear_given.h [moved from cmake/gengetopt/skels/clear_given.h with 100% similarity]
utilities/gengetopt/skels/copyright.cc [moved from cmake/gengetopt/skels/copyright.cc with 100% similarity]
utilities/gengetopt/skels/copyright.h [moved from cmake/gengetopt/skels/copyright.h with 100% similarity]
utilities/gengetopt/skels/custom_getopt_gen.cc [moved from cmake/gengetopt/skels/custom_getopt_gen.cc with 100% similarity]
utilities/gengetopt/skels/custom_getopt_gen.h [moved from cmake/gengetopt/skels/custom_getopt_gen.h with 100% similarity]
utilities/gengetopt/skels/dependant_option.cc [moved from cmake/gengetopt/skels/dependant_option.cc with 100% similarity]
utilities/gengetopt/skels/dependant_option.h [moved from cmake/gengetopt/skels/dependant_option.h with 100% similarity]
utilities/gengetopt/skels/enum_decl.cc [moved from cmake/gengetopt/skels/enum_decl.cc with 100% similarity]
utilities/gengetopt/skels/enum_decl.h [moved from cmake/gengetopt/skels/enum_decl.h with 100% similarity]
utilities/gengetopt/skels/exit_failure.cc [moved from cmake/gengetopt/skels/exit_failure.cc with 100% similarity]
utilities/gengetopt/skels/exit_failure.h [moved from cmake/gengetopt/skels/exit_failure.h with 100% similarity]
utilities/gengetopt/skels/file_save.cc [moved from cmake/gengetopt/skels/file_save.cc with 100% similarity]
utilities/gengetopt/skels/file_save.h [moved from cmake/gengetopt/skels/file_save.h with 100% similarity]
utilities/gengetopt/skels/file_save_multiple.cc [moved from cmake/gengetopt/skels/file_save_multiple.cc with 100% similarity]
utilities/gengetopt/skels/file_save_multiple.h [moved from cmake/gengetopt/skels/file_save_multiple.h with 100% similarity]
utilities/gengetopt/skels/free_list.cc [moved from cmake/gengetopt/skels/free_list.cc with 100% similarity]
utilities/gengetopt/skels/free_list.h [moved from cmake/gengetopt/skels/free_list.h with 100% similarity]
utilities/gengetopt/skels/free_multiple.cc [moved from cmake/gengetopt/skels/free_multiple.cc with 100% similarity]
utilities/gengetopt/skels/free_multiple.h [moved from cmake/gengetopt/skels/free_multiple.h with 100% similarity]
utilities/gengetopt/skels/free_string.cc [moved from cmake/gengetopt/skels/free_string.cc with 100% similarity]
utilities/gengetopt/skels/free_string.h [moved from cmake/gengetopt/skels/free_string.h with 100% similarity]
utilities/gengetopt/skels/generic_option.cc [moved from cmake/gengetopt/skels/generic_option.cc with 100% similarity]
utilities/gengetopt/skels/generic_option.h [moved from cmake/gengetopt/skels/generic_option.h with 100% similarity]
utilities/gengetopt/skels/given_field.cc [moved from cmake/gengetopt/skels/given_field.cc with 100% similarity]
utilities/gengetopt/skels/given_field.h [moved from cmake/gengetopt/skels/given_field.h with 100% similarity]
utilities/gengetopt/skels/group_counter.cc [moved from cmake/gengetopt/skels/group_counter.cc with 100% similarity]
utilities/gengetopt/skels/group_counter.h [moved from cmake/gengetopt/skels/group_counter.h with 100% similarity]
utilities/gengetopt/skels/group_option.cc [moved from cmake/gengetopt/skels/group_option.cc with 100% similarity]
utilities/gengetopt/skels/group_option.h [moved from cmake/gengetopt/skels/group_option.h with 100% similarity]
utilities/gengetopt/skels/handle_help.cc [moved from cmake/gengetopt/skels/handle_help.cc with 100% similarity]
utilities/gengetopt/skels/handle_help.h [moved from cmake/gengetopt/skels/handle_help.h with 100% similarity]
utilities/gengetopt/skels/handle_version.cc [moved from cmake/gengetopt/skels/handle_version.cc with 100% similarity]
utilities/gengetopt/skels/handle_version.h [moved from cmake/gengetopt/skels/handle_version.h with 100% similarity]
utilities/gengetopt/skels/header.cc [moved from cmake/gengetopt/skels/header.cc with 100% similarity]
utilities/gengetopt/skels/header.h [moved from cmake/gengetopt/skels/header.h with 100% similarity]
utilities/gengetopt/skels/init_args_info.cc [moved from cmake/gengetopt/skels/init_args_info.cc with 100% similarity]
utilities/gengetopt/skels/init_args_info.h [moved from cmake/gengetopt/skels/init_args_info.h with 100% similarity]
utilities/gengetopt/skels/multiple_fill_array.cc [moved from cmake/gengetopt/skels/multiple_fill_array.cc with 100% similarity]
utilities/gengetopt/skels/multiple_fill_array.h [moved from cmake/gengetopt/skels/multiple_fill_array.h with 100% similarity]
utilities/gengetopt/skels/multiple_opt_list.cc [moved from cmake/gengetopt/skels/multiple_opt_list.cc with 100% similarity]
utilities/gengetopt/skels/multiple_opt_list.h [moved from cmake/gengetopt/skels/multiple_opt_list.h with 100% similarity]
utilities/gengetopt/skels/option_arg.cc [moved from cmake/gengetopt/skels/option_arg.cc with 100% similarity]
utilities/gengetopt/skels/option_arg.h [moved from cmake/gengetopt/skels/option_arg.h with 100% similarity]
utilities/gengetopt/skels/print_help_string.cc [moved from cmake/gengetopt/skels/print_help_string.cc with 100% similarity]
utilities/gengetopt/skels/print_help_string.h [moved from cmake/gengetopt/skels/print_help_string.h with 100% similarity]
utilities/gengetopt/skels/required_option.cc [moved from cmake/gengetopt/skels/required_option.cc with 100% similarity]
utilities/gengetopt/skels/required_option.h [moved from cmake/gengetopt/skels/required_option.h with 100% similarity]
utilities/gengetopt/skels/reset_group.cc [moved from cmake/gengetopt/skels/reset_group.cc with 100% similarity]
utilities/gengetopt/skels/reset_group.h [moved from cmake/gengetopt/skels/reset_group.h with 100% similarity]
utilities/gengetopt/skels/update_given.cc [moved from cmake/gengetopt/skels/update_given.cc with 100% similarity]
utilities/gengetopt/skels/update_given.h [moved from cmake/gengetopt/skels/update_given.h with 100% similarity]
utilities/gengetopt/yyerror.cc [moved from cmake/gengetopt/yyerror.cc with 100% similarity]
utilities/gengetopt/yyerror.h [moved from cmake/gengetopt/yyerror.h with 100% similarity]
utilities/gengetopt/yywrap.c [moved from cmake/gengetopt/yywrap.c with 100% similarity]

index 77665420bac997f7b3cf40031890c18912b161bb..78098f9955cac54aa79085ac5eaceb46c8760be4 100644 (file)
@@ -3,7 +3,7 @@
 FIND_PROGRAM(GENGETOPT gengetopt)
 IF (GENGETOPT STREQUAL "GENGETOPT-NOTFOUND")
   GET_FILENAME_COMPONENT(CLITK_CMAKE_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
-  ADD_SUBDIRECTORY(${CLITK_CMAKE_DIR}/gengetopt ${CMAKE_CURRENT_BINARY_DIR}/gengetopt)
+  ADD_SUBDIRECTORY(${CLITK_CMAKE_DIR}/../utilities/gengetopt ${CMAKE_CURRENT_BINARY_DIR}/gengetopt)
 ELSE(GENGETOPT STREQUAL "GENGETOPT-NOTFOUND")
   ADD_EXECUTABLE(gengetopt IMPORTED)
   SET_PROPERTY(TARGET gengetopt PROPERTY IMPORTED_LOCATION ${GENGETOPT})
@@ -32,4 +32,7 @@ MACRO (WRAP_GGO GGO_SRCS)
     INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
   ENDFOREACH(GGO_FILE)
   SET_SOURCE_FILES_PROPERTIES(${${GGO_SRCS}} PROPERTIES GENERATED TRUE)
+  IF(CMAKE_COMPILER_IS_GNUCXX)
+    SET_SOURCE_FILES_PROPERTIES(${${GGO_SRCS}} PROPERTIES COMPILE_FLAGS "-Wno-unused-but-set-variable")
+  ENDIF(CMAKE_COMPILER_IS_GNUCXX)
 ENDMACRO (WRAP_GGO)