CMakeLists.txt 304 B

1234567891011
  1. set(SRCS
  2. getopt.c
  3. )
  4. set(HEADERS
  5. getopt.h
  6. )
  7. create_directory_groups(${SRCS} ${HEADERS})
  8. add_library(getopt ${SRCS} ${HEADERS})
  9. target_compile_definitions(getopt PUBLIC STATIC_GETOPT)
  10. target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})