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