CMakeLists.txt 483 B

123456789101112131415161718192021
  1. cmake_minimum_required(VERSION 3.10)
  2. project(hanvon-linux C)
  3. add_executable(hvlusb hanvon-libusb.c)
  4. find_package(PkgConfig)
  5. pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
  6. pkg_check_modules(LIBEVDEV REQUIRED libevdev)
  7. #pkg_check_modules(LIBUDEV REQUIRED libudev)
  8. include_directories(
  9. ${LIBUSB_INCLUDE_DIRS}
  10. ${LIBEVDEV_INCLUDE_DIRS}
  11. # ${LIBUDEV_INCLUDE_DIRS}
  12. )
  13. target_link_libraries(
  14. hvlusb
  15. ${LIBUSB_LIBRARIES}
  16. ${LIBEVDEV_LIBRARIES}
  17. # ${LIBUDEV_LIBRARIES}
  18. )