fix: cmake bug

This commit is contained in:
darrenhsieh 2021-01-31 18:08:25 +08:00
parent 1666c82db4
commit ebc375e51e
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ set(LIBARARY_NAME "FastRT" CACHE STRING "The Fastreid-tensorrt library name")
set(LIBARARY_VERSION_MAJOR "0")
set(LIBARARY_VERSION_MINOR "0")
set(LIBARARY_VERSION_SINOR "1")
set(LIBARARY_VERSION_SINOR "2")
set(LIBARARY_SOVERSION "0")
set(LIBARARY_VERSION "${LIBARARY_VERSION_MAJOR}.${LIBARARY_VERSION_MINOR}.${LIBARARY_VERSION_SINOR}")
project(${LIBARARY_NAME}${LIBARARY_VERSION})
@ -54,4 +54,4 @@ if(BUILD_DEMO)
message(STATUS "BUILD_DEMO: ON")
else()
message(STATUS "BUILD_DEMO: OFF")
endif()
endif()

View File

@ -16,7 +16,7 @@ add_executable(${APP_PROJECT_NAME} inference.cpp)
find_package(OpenCV)
target_include_directories(${APP_PROJECT_NAME}
PUBLIC
OpenCV_INCLUDE_DIRS
${OpenCV_INCLUDE_DIRS}
)
target_link_libraries(${APP_PROJECT_NAME}
PUBLIC

View File

@ -24,7 +24,7 @@ PUBLIC
find_package(OpenCV)
target_include_directories(${PROJECT_NAME}
PUBLIC
OpenCV_INCLUDE_DIRS
${OpenCV_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}