Create bat for all exe

This commit is contained in:
John Zhao
2018-04-25 12:08:25 +08:00
parent f766f2df22
commit 44364e7d82
6 changed files with 36 additions and 0 deletions

View File

@@ -41,6 +41,12 @@ LIST(APPEND CMAKE_MODULE_PATH ${PRO_DIR}/cmake)
find_package(OpenCV REQUIRED)
message(STATUS "Found OpenCV: ${OpenCV_VERSION}")
if(OS_WIN)
get_filename_component(OpenCV_LIB_SEARCH_PATH "${OpenCV_LIB_PATH}/../bin" ABSOLUTE)
else()
set(OpenCV_LIB_SEARCH_PATH "${OpenCV_LIB_PATH}")
endif()
# targets
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")

View File

@@ -10,6 +10,10 @@ set_outdir(
add_executable(camera_d camera.cc)
target_link_libraries(camera_d mynteye ${OpenCV_LIBS})
target_create_scripts(camera_d DLL_SEARCH_PATHS
${PRO_DIR}/_install/bin
${OpenCV_LIB_SEARCH_PATH}
)
if(OS_WIN)
target_compile_definitions(camera_d

View File

@@ -14,6 +14,10 @@ include_directories(
add_executable(camera_u camera.cc)
target_link_libraries(camera_u mynteye ${OpenCV_LIBS})
target_create_scripts(camera_u DLL_SEARCH_PATHS
${PRO_DIR}/_install/bin
${OpenCV_LIB_SEARCH_PATH}
)
if(OS_WIN)
target_compile_definitions(camera_u