blob: d905615e1561d06f8562ff205d9a94c8a08469c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
check_include_file("string.h" HAVE_STRING_H)
if(NOT WIN32)
find_package(Intl)
endif()
add_library(getopt STATIC getopt.c getopt1.c)
if(Intl_FOUND)
target_include_directories(getopt PRIVATE ${Intl_INCLUDE_DIRS})
target_link_libraries(getopt PUBLIC ${Intl_LIBRARIES})
target_compile_definitions(getopt PRIVATE HAVE_LIBINTL_H)
endif()
|