2020-08-26 09:52:55 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-12-14 16:07:17 +08:00
|
|
|
index 3648fb5..43c3d28 100644
|
2020-08-26 09:52:55 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-12-14 16:07:17 +08:00
|
|
|
@@ -91,7 +91,7 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
2020-08-26 09:52:55 +08:00
|
|
|
|
|
|
|
# dependencies
|
|
|
|
FIND_PACKAGE(PkgConfig) # try find PKGConfig as it will be used if found
|
|
|
|
-FIND_PACKAGE(LibUSB REQUIRED)
|
2023-12-14 16:07:17 +08:00
|
|
|
+pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
|
2020-08-26 09:52:55 +08:00
|
|
|
|
|
|
|
# Add includes
|
|
|
|
INCLUDE_DIRECTORIES(
|
2023-12-14 16:07:17 +08:00
|
|
|
@@ -99,7 +99,7 @@ INCLUDE_DIRECTORIES(
|
2020-08-26 09:52:55 +08:00
|
|
|
"${MY_DIR}/include/internal"
|
|
|
|
${PROJECT_BINARY_DIR} # for generated headers
|
|
|
|
${LIBFREENECT2_THREADING_INCLUDE_DIR}
|
|
|
|
- ${LibUSB_INCLUDE_DIRS}
|
2023-12-14 16:07:17 +08:00
|
|
|
+ ${libusb_INCLUDE_DIRS}
|
2020-08-26 09:52:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(RESOURCES_INC_FILE "${PROJECT_BINARY_DIR}/resources.inc.h")
|
2023-12-14 16:07:17 +08:00
|
|
|
@@ -157,7 +157,7 @@ SET(SOURCES
|
2020-08-26 09:52:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
- ${LibUSB_LIBRARIES}
|
2023-12-14 16:07:17 +08:00
|
|
|
+ PkgConfig::libusb
|
2020-08-26 09:52:55 +08:00
|
|
|
${LIBFREENECT2_THREADING_LIBRARIES}
|
|
|
|
)
|
|
|
|
|