0% found this document useful (0 votes)
11 views1 page

C Make Lists

Uploaded by

acollao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

C Make Lists

Uploaded by

acollao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

cmake_minimum_required(VERSION 3.

0)
project(hidusb-relay)

if(WIN32)
message("Building against hid")
set(SOURCES hiddata_mswin.c)
set(LIBRARIES hid setupapi)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL Darwin AND NOT USE_LIBUSB_ON_MACOS)
option(USE_LIBUSB_ON_MACOS "Use libusb instead of IOKit on MacOS" ON)

set(SOURCES hiddata_osx.c)
set(LIBRARIES
"-framework CoreFoundation"
"-framework IOKit"
)
else()
set(SOURCES hiddata_libusb01.c)
include(FindPkgConfig)
pkg_check_modules(LIBUSB REQUIRED libusb)
include_directories(${LIBUSB_INCLUDE_DIRS})
set(LIBRARIES ${LIBUSB_LIBRARIES})
endif()

add_library(hidusb-relay SHARED ${SOURCES})


target_link_libraries(hidusb-relay ${LIBRARIES})

add_executable(hidusb-relay-cmd usbrelay-cmd.c)
target_link_libraries(hidusb-relay-cmd hidusb-relay)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy