matio-1.5.30/cmake/getopt.cmake
raw| 1 | if(NOT HAVE_GETOPT) |
| 2 | set(getopt_SOURCES |
| 3 | ${PROJECT_SOURCE_DIR}/getopt/getopt_long.c |
| 4 | ${PROJECT_SOURCE_DIR}/getopt/getopt.h |
| 5 | ) |
| 6 | add_library(getopt STATIC ${getopt_SOURCES}) |
| 7 | target_include_directories(getopt PUBLIC ${PROJECT_SOURCE_DIR}/getopt) |
| 8 | |
| 9 | # FIXME this should be fixed in the sourcecode |
| 10 | target_compile_definitions(getopt PUBLIC -DREPLACE_GETOPT=1) |
| 11 | endif() |