diff --git a/.gitignore b/.gitignore index b3f0e3b62..4f0c1f8bd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ examples/protonect/include/libfreenect2/config.h # generated resource file examples/protonect/src/resources.inc.h examples/protonect/build +examples/protonect/lib # Dependency folders depends/*/ diff --git a/examples/protonect/CMakeLists.txt b/examples/protonect/CMakeLists.txt index b56c89c49..df218caa2 100644 --- a/examples/protonect/CMakeLists.txt +++ b/examples/protonect/CMakeLists.txt @@ -192,6 +192,7 @@ TARGET_LINK_LIBRARIES(Protonect ) CONFIGURE_FILE(freenect2.cmake.in "${PROJECT_BINARY_DIR}/freenect2Config.cmake" @ONLY) +CONFIGURE_FILE(freenect2.pc.in "${PROJECT_BINARY_DIR}/freenect2.pc" @ONLY) INSTALL(TARGETS freenect2shared DESTINATION lib) INSTALL(TARGETS freenect2static DESTINATION lib) @@ -200,4 +201,5 @@ IF(LIBFREENECT2_THREADING_TINYTHREAD) INSTALL(FILES "${MY_DIR}/src/tinythread/tinythread.h" DESTINATION include/${PROJECT_NAME}/tinythread/) ENDIF(LIBFREENECT2_THREADING_TINYTHREAD) INSTALL(FILES "${PROJECT_BINARY_DIR}/freenect2Config.cmake" DESTINATION lib/cmake/freenect2/) +INSTALL(FILES "${PROJECT_BINARY_DIR}/freenect2.pc" DESTINATION lib/pkgconfig/) diff --git a/examples/protonect/freenect2.pc.in b/examples/protonect/freenect2.pc.in new file mode 100644 index 000000000..50e557003 --- /dev/null +++ b/examples/protonect/freenect2.pc.in @@ -0,0 +1,12 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: freenect2 +Description: Driver for the Kinect v2 (aka K4W) +Version: +Requires: @DEPS_PKGCONFIG@ +Libs: -L${libdir} -lfreenect2 +Cflags: -I${includedir} +