File: getopt.cmake

package info (click to toggle)
yubihsm-shell 2.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,020 kB
  • sloc: ansic: 41,745; sh: 2,030; cpp: 528; makefile: 18; xml: 16
file content (11 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
macro (find_getopt)
    if (MSVC)
        if(NOT GETOPT_LIB_DIR AND NOT GETOPT_INCLUDE_DIR)
            message (FATAL_ERROR "Missing 'GETOPT_LIB_DIR' and 'GETOPT_INCLUDE_DIR' options to CMake command. Aborting...")
        else(NOT GETOPT_LIB_DIR AND NOT GETOPT_INCLUDE_DIR)
            find_library(GETOPT getopt PATHS ${GETOPT_LIB_DIR})
            set(GETOPT_LIBS ${GETOPT})
            include_directories(${GETOPT_INCLUDE_DIR})
        endif(NOT GETOPT_LIB_DIR AND NOT GETOPT_INCLUDE_DIR)
    endif (MSVC)
endmacro ()