[libimobiledevice]Fix build.

This commit is contained in:
JackBoosY 2019-10-31 21:45:40 -07:00
parent 69c0cc89d6
commit 98f1a953e6

View File

@ -7,19 +7,15 @@ find_library(libusbmuxd usbmuxd REQUIRED)
find_package(OpenSSL REQUIRED)
find_path(dirent_INCLUDE_DIR dirent.h)
if (WIN32)
find_library(getopt getopt REQUIRED)
find_library(getopt getopt REQUIRED)
endif()
#prepare config files
configure_file(config.h.in config.h @ONLY)
# ready to create library
file(GLOB_RECURSE IMOBDEV_COMMON_HDR common/*.h)
file(GLOB_RECURSE IMOBDEV_COMMON_SRC common/*.c)
file(GLOB IMOBDEV_PUBLIC_HDR include/*.h)
file(GLOB IMOBDEV_PUBLIC_SUB_HDR include/libimobiledevice/*.h)
list(APPEND IMOBDEV_PUBLIC_HDR ${CMAKE_CURRENT_BINARY_DIR}/config.h)
file(GLOB_RECURSE IMOBDEV_PRIVATE_HDR src/*.h)
file(GLOB_RECURSE IMOBDEV_SRC src/*.c)