32 lines
656 B
CMake
32 lines
656 B
CMake
project(file-updater)
|
|
|
|
find_package(Libcurl REQUIRED)
|
|
|
|
include_directories(${LIBCURL_INCLUDE_DIRS})
|
|
|
|
if(WIN32 AND NOT MINGW)
|
|
include_directories(../w32-pthreads)
|
|
set(file-updater_PLATFORM_DEPS
|
|
w32-pthreads)
|
|
endif()
|
|
|
|
set(file-updater_HEADERS
|
|
file-updater/file-updater.h)
|
|
set(file-updater_SOURCES
|
|
file-updater/file-updater.c)
|
|
|
|
add_library(file-updater STATIC
|
|
${file-updater_SOURCES}
|
|
${file-updater_HEADERS})
|
|
|
|
target_include_directories(file-updater
|
|
PUBLIC .)
|
|
|
|
target_link_libraries(file-updater
|
|
${LIBCURL_LIBRARIES}
|
|
${file-updater_PLATFORM_DEPS}
|
|
libobs)
|
|
set_target_properties(file-updater PROPERTIES
|
|
FOLDER "deps"
|
|
POSITION_INDEPENDENT_CODE ON)
|