File: getopt.cmake

package info (click to toggle)
libmatio 1.5.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,648 kB
  • sloc: sh: 126,066; ansic: 22,606; makefile: 646; python: 215
file content (11 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
if(NOT HAVE_GETOPT)
    set(getopt_SOURCES
        ${PROJECT_SOURCE_DIR}/getopt/getopt_long.c
        ${PROJECT_SOURCE_DIR}/getopt/getopt.h
    )
    add_library(getopt STATIC ${getopt_SOURCES})
    target_include_directories(getopt PUBLIC ${PROJECT_SOURCE_DIR}/getopt)

    # FIXME this should be fixed in the sourcecode
    target_compile_definitions(getopt PUBLIC -DREPLACE_GETOPT=1)
endif()