a247336c71e17a63760f17eac88df1c4540d19e0
[flac.git] / src / share / getopt / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.12)
2
3 check_include_file("libintl.h" HAVE_LIBINTL_H)
4 check_include_file("string.h" HAVE_STRING_H)
5
6 add_compile_definitions(
7     $<$<BOOL:${HAVE_LIBINTL_H}>:HAVE_LIBINTL_H>
8     $<$<BOOL:${HAVE_STRING_H}>:HAVE_STRING_H>)
9
10 add_library(getopt STATIC
11     getopt.c
12     getopt1.c)