如何通过TARGET_LINK_LIBRARIES添加具有相对路径的库?

时间:2015-10-26 14:10:07

标签: cmake

在我的CMakeLists.txt中,我不知道如何在`target_link_libraries中提供相对路径。

我的CMakeLists.txt看起来像这样

add_library(FaceDetection SHARED example_wrap.cpp example.cpp  )
INCLUDE_DIRECTORIES(../../../Includes/OpenCV-3.0.0-android-sdk/sdk/native/jni/include)
target_link_libraries(FaceDetection ../../../Includes/OpenCV-3.0.0-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java.so)
install (TARGETS FaceDetection DESTINATION ${CMAKE_BINARY_DIR}/bin)

如何传递目标链接库的相对路径?

0 个答案:

没有答案