]> Creatis software - clitk.git/blob - utilities/gengetopt/CMakeLists.txt
Rolled back to middle slice on first load
[clitk.git] / utilities / gengetopt / CMakeLists.txt
1 # Gengetopt: http://www.gnu.org/software/gengetopt/
2
3 ADD_DEFINITIONS(-DPACKAGE=\"gengetopt\")
4 ADD_DEFINITIONS(-DVERSION=\"2.22.4\")
5 ADD_DEFINITIONS(-DHAVE_SSTREAM)
6 ADD_DEFINITIONS(-DHAVE_NAMESPACES)
7
8 # Remove compiler warnings
9 STRING(REPLACE "/W3" "/w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
10 STRING(REPLACE "/W3" "/w" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
11 STRING(REPLACE "-Wall" "-w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
12 STRING(REPLACE "-Wall" "-w" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
13
14 # MSVC specific issues
15 IF(MSVC)
16   ADD_DEFINITIONS(-DHAVE_STRING_H)
17   ADD_DEFINITIONS(-DYY_NO_UNISTD_H)
18   ADD_DEFINITIONS(-Disatty=!)
19 ENDIF(MSVC)
20
21 ADD_EXECUTABLE(gengetopt 
22   ./cmdline.c
23   ./ggos.cpp
24   ./scanner.cc
25   ./skels/required_option.cc
26   ./skels/handle_version.cc
27   ./skels/generic_option.cc
28   ./skels/clear_arg.cc
29   ./skels/update_given.cc
30   ./skels/dependant_option.cc
31   ./skels/custom_getopt_gen.cc
32   ./skels/handle_help.cc
33   ./skels/given_field.cc
34   ./skels/init_args_info.cc
35   ./skels/multiple_opt_list.cc
36   ./skels/free_list.cc
37   ./skels/exit_failure.cc
38   ./skels/clear_given.cc
39   ./skels/free_multiple.cc
40   ./skels/enum_decl.cc
41   ./skels/reset_group.cc
42   ./skels/c_source.cc
43   ./skels/group_option.cc
44   ./skels/file_save.cc
45   ./skels/check_modes.cc
46   ./skels/copyright.cc
47   ./skels/option_arg.cc
48   ./skels/group_counter.cc
49   ./skels/free_string.cc
50   ./skels/header.cc
51   ./skels/print_help_string.cc
52   ./skels/multiple_fill_array.cc
53   ./skels/file_save_multiple.cc
54   ./fileutils.cpp
55   ./getopt.c
56   ./gm.cc
57   ./globals.cpp
58   ./yywrap.c
59   ./getopt1.c
60   ./argsdef.c
61   ./gm_utils.cpp
62   ./acceptedvalues.cpp
63   ./gengetopt.cc
64   ./yyerror.cc
65   ./parser.cc)
66
67 INCLUDE_DIRECTORIES(.)
68 INCLUDE_DIRECTORIES(skels)
69 #INCLUDE_DIRECTORIES(includes)