Update CMakeLists.txt

This commit is contained in:
John Zhao
2018-05-11 16:15:26 +08:00
parent 76d12ccec7
commit ff70cc47f3
16 changed files with 171 additions and 156 deletions

View File

@@ -29,49 +29,26 @@ include_directories(
add_library(device_writer STATIC device_writer.cc)
target_link_libraries(device_writer mynteye ${OpenCV_LIBS})
set(LINK_LIBS device_writer)
## device_info_writer
add_executable(device_info_writer device_info_writer.cc)
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}
make_executable(device_info_writer
SRCS device_info_writer.cc
LINK_LIBS device_writer
DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH}
)
if(OS_WIN)
target_compile_definitions(device_info_writer
PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES
)
endif()
## img_params_writer
add_executable(img_params_writer img_params_writer.cc)
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}
make_executable(img_params_writer
SRCS img_params_writer.cc
LINK_LIBS device_writer
DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH}
)
if(OS_WIN)
target_compile_definitions(img_params_writer
PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES
)
endif()
## imu_params_writer
add_executable(imu_params_writer imu_params_writer.cc)
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}
make_executable(imu_params_writer
SRCS imu_params_writer.cc
LINK_LIBS device_writer
DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH}
)
if(OS_WIN)
target_compile_definitions(imu_params_writer
PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES
)
endif()