0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/deps/file-updater/CMakeLists.txt
2022-03-16 23:11:07 +01:00

18 lines
517 B
CMake

project(file-updater)
find_package(CURL REQUIRED)
add_library(file-updater INTERFACE)
add_library(OBS::file-updater ALIAS file-updater)
target_sources(file-updater INTERFACE file-updater/file-updater.c
file-updater/file-updater.h)
target_link_libraries(file-updater INTERFACE CURL::libcurl)
target_include_directories(file-updater INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
if(OS_WINDOWS AND NOT MINGW)
target_link_libraries(file-updater INTERFACE OBS::w32-pthreads)
endif()