hanvon-linux/CMakeLists.txt
scuti 894c82c381 cmake (#12)
Generate makefile with cmake.
2021-09-26 20:12:39 -07:00

21 lines
483 B
CMake

cmake_minimum_required(VERSION 3.10)
project(hanvon-linux C)
add_executable(hvlusb hanvon-libusb.c)
find_package(PkgConfig)
pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
pkg_check_modules(LIBEVDEV REQUIRED libevdev)
#pkg_check_modules(LIBUDEV REQUIRED libudev)
include_directories(
${LIBUSB_INCLUDE_DIRS}
${LIBEVDEV_INCLUDE_DIRS}
# ${LIBUDEV_INCLUDE_DIRS}
)
target_link_libraries(
hvlusb
${LIBUSB_LIBRARIES}
${LIBEVDEV_LIBRARIES}
# ${LIBUDEV_LIBRARIES}
)