52 lines
1.1 KiB
CMake
52 lines
1.1 KiB
CMake
get_filename_component(DIR_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
|
|
|
set_outdir(
|
|
"${OUT_DIR}/lib/${DIR_NAME}"
|
|
"${OUT_DIR}/lib/${DIR_NAME}"
|
|
"${OUT_DIR}/bin/${DIR_NAME}"
|
|
)
|
|
|
|
include_directories(
|
|
${PRO_DIR}/src
|
|
)
|
|
|
|
## device_writer
|
|
|
|
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})
|
|
|
|
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})
|
|
|
|
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})
|
|
|
|
if(OS_WIN)
|
|
target_compile_definitions(imu_params_writer
|
|
PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES
|
|
)
|
|
endif()
|