CMakeLists.txt 517 B

1234567891011121314151617
  1. project(file-updater)
  2. find_package(CURL REQUIRED)
  3. add_library(file-updater INTERFACE)
  4. add_library(OBS::file-updater ALIAS file-updater)
  5. target_sources(file-updater INTERFACE file-updater/file-updater.c
  6. file-updater/file-updater.h)
  7. target_link_libraries(file-updater INTERFACE CURL::libcurl)
  8. target_include_directories(file-updater INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
  9. if(OS_WINDOWS AND NOT MINGW)
  10. target_link_libraries(file-updater INTERFACE OBS::w32-pthreads)
  11. endif()