1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00
sdrangel/fcdhid/CMakeLists.txt

35 lines
625 B
CMake
Raw Normal View History

project(fcdhid)
set(fcdhid_SOURCES
2022-03-05 06:04:27 -05:00
../custom/apple/apple_compat.c
fcdhid.c
)
set(fcdhid_HEADERS
2022-03-05 06:04:27 -05:00
fcdhid.h
)
include_directories(
2022-03-05 06:04:27 -05:00
${LIBUSB_INCLUDE_DIR}
${HIDAPI_INCLUDE_DIRS}
2022-03-05 06:04:27 -05:00
${ICONV_INCLUDE_DIR}
${CUSTOM_APPLE_INCLUDE}
)
add_library(fcdhid SHARED
2022-03-05 06:04:27 -05:00
${fcdhid_SOURCES}
)
target_link_libraries(fcdhid
2022-03-05 06:04:27 -05:00
${LIBUSB_LIBRARIES}
${HIDAPI_LIBRARIES}
2022-03-05 06:04:27 -05:00
${ICONV_LIBRARY}
)
2022-05-29 16:26:04 -04:00
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})