Implement new argument parsing using getopt and add the corresponding library to externals

This commit is contained in:
Greg Wicks 2015-06-22 20:59:00 -04:00
parent f4e1d8ea36
commit 9930ef72dd
6 changed files with 1156 additions and 3 deletions

11
externals/getopt/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,11 @@
set(SRCS
getopt.c
)
set(HEADERS
getopt.h
)
create_directory_groups(${SRCS} ${HEADERS})
add_library(getopt ${SRCS} ${HEADERS})
target_compile_definitions(getopt INTERFACE STATIC_GETOPT)
target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})