2015-09-03 01:57:54 +00:00
|
|
|
project(fcdhid)
|
|
|
|
|
|
|
|
set(fcdhid_SOURCES
|
2022-03-05 11:04:27 +00:00
|
|
|
../custom/apple/apple_compat.c
|
|
|
|
fcdhid.c
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(fcdhid_HEADERS
|
2022-03-05 11:04:27 +00:00
|
|
|
fcdhid.h
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2022-03-05 11:04:27 +00:00
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2022-03-06 00:30:15 +00:00
|
|
|
${HIDAPI_INCLUDE_DIRS}
|
2022-03-05 11:04:27 +00:00
|
|
|
${ICONV_INCLUDE_DIR}
|
|
|
|
${CUSTOM_APPLE_INCLUDE}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(fcdhid SHARED
|
2022-03-05 11:04:27 +00:00
|
|
|
${fcdhid_SOURCES}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(fcdhid
|
2022-03-05 11:04:27 +00:00
|
|
|
${LIBUSB_LIBRARIES}
|
2022-03-06 00:30:15 +00:00
|
|
|
${HIDAPI_LIBRARIES}
|
2022-03-05 11:04:27 +00:00
|
|
|
${ICONV_LIBRARY}
|
2015-09-03 01:57:54 +00:00
|
|
|
)
|
2016-02-24 10:51:36 +00:00
|
|
|
|
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()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS fcdhid DESTINATION ${INSTALL_LIB_DIR})
|