Create bat for all exe
This commit is contained in:
parent
f766f2df22
commit
44364e7d82
|
@ -41,6 +41,12 @@ LIST(APPEND CMAKE_MODULE_PATH ${PRO_DIR}/cmake)
|
||||||
find_package(OpenCV REQUIRED)
|
find_package(OpenCV REQUIRED)
|
||||||
message(STATUS "Found OpenCV: ${OpenCV_VERSION}")
|
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
|
# targets
|
||||||
|
|
||||||
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
||||||
|
|
|
@ -10,6 +10,10 @@ set_outdir(
|
||||||
|
|
||||||
add_executable(camera_d camera.cc)
|
add_executable(camera_d camera.cc)
|
||||||
target_link_libraries(camera_d mynteye ${OpenCV_LIBS})
|
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)
|
if(OS_WIN)
|
||||||
target_compile_definitions(camera_d
|
target_compile_definitions(camera_d
|
||||||
|
|
|
@ -14,6 +14,10 @@ include_directories(
|
||||||
|
|
||||||
add_executable(camera_u camera.cc)
|
add_executable(camera_u camera.cc)
|
||||||
target_link_libraries(camera_u mynteye ${OpenCV_LIBS})
|
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)
|
if(OS_WIN)
|
||||||
target_compile_definitions(camera_u
|
target_compile_definitions(camera_u
|
||||||
|
|
|
@ -46,6 +46,12 @@ else()
|
||||||
add_definitions(-DUSE_OPENCV3)
|
add_definitions(-DUSE_OPENCV3)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
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
|
# targets
|
||||||
|
|
||||||
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
||||||
|
|
|
@ -10,6 +10,10 @@ set_outdir(
|
||||||
|
|
||||||
add_executable(record record.cc dataset.cc)
|
add_executable(record record.cc dataset.cc)
|
||||||
target_link_libraries(record mynteye ${OpenCV_LIBS})
|
target_link_libraries(record mynteye ${OpenCV_LIBS})
|
||||||
|
target_create_scripts(record DLL_SEARCH_PATHS
|
||||||
|
${PRO_DIR}/_install/bin
|
||||||
|
${OpenCV_LIB_SEARCH_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
if(OS_WIN)
|
if(OS_WIN)
|
||||||
target_compile_definitions(record
|
target_compile_definitions(record
|
||||||
|
|
|
@ -21,6 +21,10 @@ set(LINK_LIBS device_writer)
|
||||||
|
|
||||||
add_executable(device_info_writer device_info_writer.cc)
|
add_executable(device_info_writer device_info_writer.cc)
|
||||||
target_link_libraries(device_info_writer ${LINK_LIBS})
|
target_link_libraries(device_info_writer ${LINK_LIBS})
|
||||||
|
target_create_scripts(device_info_writer DLL_SEARCH_PATHS
|
||||||
|
${PRO_DIR}/_install/bin
|
||||||
|
${OpenCV_LIB_SEARCH_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
if(OS_WIN)
|
if(OS_WIN)
|
||||||
target_compile_definitions(device_info_writer
|
target_compile_definitions(device_info_writer
|
||||||
|
@ -32,6 +36,10 @@ endif()
|
||||||
|
|
||||||
add_executable(img_params_writer img_params_writer.cc)
|
add_executable(img_params_writer img_params_writer.cc)
|
||||||
target_link_libraries(img_params_writer ${LINK_LIBS})
|
target_link_libraries(img_params_writer ${LINK_LIBS})
|
||||||
|
target_create_scripts(img_params_writer DLL_SEARCH_PATHS
|
||||||
|
${PRO_DIR}/_install/bin
|
||||||
|
${OpenCV_LIB_SEARCH_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
if(OS_WIN)
|
if(OS_WIN)
|
||||||
target_compile_definitions(img_params_writer
|
target_compile_definitions(img_params_writer
|
||||||
|
@ -43,6 +51,10 @@ endif()
|
||||||
|
|
||||||
add_executable(imu_params_writer imu_params_writer.cc)
|
add_executable(imu_params_writer imu_params_writer.cc)
|
||||||
target_link_libraries(imu_params_writer ${LINK_LIBS})
|
target_link_libraries(imu_params_writer ${LINK_LIBS})
|
||||||
|
target_create_scripts(imu_params_writer DLL_SEARCH_PATHS
|
||||||
|
${PRO_DIR}/_install/bin
|
||||||
|
${OpenCV_LIB_SEARCH_PATH}
|
||||||
|
)
|
||||||
|
|
||||||
if(OS_WIN)
|
if(OS_WIN)
|
||||||
target_compile_definitions(imu_params_writer
|
target_compile_definitions(imu_params_writer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user