sdrangel/fcdhid/CMakeLists.txt

35 wiersze
625 B
CMake
Czysty Zwykły widok Historia

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