1 # Gengetopt: http://www.gnu.org/software/gengetopt/
3 ADD_DEFINITIONS(-DPACKAGE=\"gengetopt\")
4 ADD_DEFINITIONS(-DVERSION=\"2.22.4\")
5 ADD_DEFINITIONS(-DHAVE_SSTREAM)
6 ADD_DEFINITIONS(-DHAVE_NAMESPACES)
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}")
14 # MSVC specific issues
16 ADD_DEFINITIONS(-DHAVE_STRING_H)
17 ADD_DEFINITIONS(-DYY_NO_UNISTD_H)
18 ADD_DEFINITIONS(-Disatty=!)
21 ADD_EXECUTABLE(gengetopt
25 ./skels/required_option.cc
26 ./skels/handle_version.cc
27 ./skels/generic_option.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
37 ./skels/exit_failure.cc
38 ./skels/clear_given.cc
39 ./skels/free_multiple.cc
41 ./skels/reset_group.cc
43 ./skels/group_option.cc
45 ./skels/check_modes.cc
48 ./skels/group_counter.cc
49 ./skels/free_string.cc
51 ./skels/print_help_string.cc
52 ./skels/multiple_fill_array.cc
53 ./skels/file_save_multiple.cc
67 INCLUDE_DIRECTORIES(.)
68 INCLUDE_DIRECTORIES(skels)
69 #INCLUDE_DIRECTORIES(includes)