mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
35 lines
625 B
CMake
35 lines
625 B
CMake
project(fcdhid)
|
|
|
|
set(fcdhid_SOURCES
|
|
../custom/apple/apple_compat.c
|
|
fcdhid.c
|
|
)
|
|
|
|
set(fcdhid_HEADERS
|
|
fcdhid.h
|
|
)
|
|
|
|
include_directories(
|
|
${LIBUSB_INCLUDE_DIR}
|
|
${HIDAPI_INCLUDE_DIRS}
|
|
${ICONV_INCLUDE_DIR}
|
|
${CUSTOM_APPLE_INCLUDE}
|
|
)
|
|
|
|
add_library(fcdhid SHARED
|
|
${fcdhid_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(fcdhid
|
|
${LIBUSB_LIBRARIES}
|
|
${HIDAPI_LIBRARIES}
|
|
${ICONV_LIBRARY}
|
|
)
|
|
|
|
set_target_properties(fcdhid PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS true)
|
|
if (MSVC)
|
|
set_target_properties(fcdhid PROPERTIES INTERPROCEDURAL_OPTIMIZATION false)
|
|
endif()
|
|
|
|
install(TARGETS fcdhid DESTINATION ${INSTALL_LIB_DIR})
|