• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1check_include_file("string.h" HAVE_STRING_H)
2
3if(NOT WIN32)
4    find_package(Intl)
5endif()
6
7add_library(getopt STATIC getopt.c getopt1.c)
8
9if(Intl_FOUND)
10    target_include_directories(getopt PRIVATE ${Intl_INCLUDE_DIRS})
11    target_link_libraries(getopt PUBLIC ${Intl_LIBRARIES})
12    target_compile_definitions(getopt PRIVATE HAVE_LIBINTL_H)
13endif()
14