From 1e49fc6c19d1faf3513e928a0c99efcbffdc4ed8 Mon Sep 17 00:00:00 2001 From: TinyO Date: Fri, 1 Nov 2019 15:37:57 +0800 Subject: [PATCH] fix(*): win sln config. --- samples/CMakeLists.txt | 58 ++++++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index 36a3b89..3281fa9 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -242,42 +242,46 @@ if(WITH_API) endif() endif() -## device_writer +if(OS_WIN) +else() + ## device_writer -add_library(device_writer STATIC device_writer.cc) -target_link_libraries(device_writer mynteye ${OpenCV_LIBS}) + add_library(device_writer STATIC device_writer.cc) + target_link_libraries(device_writer mynteye ${OpenCV_LIBS}) -## device_info_writer + ## device_info_writer -make_executable(write_device_info - SRCS write_device_info.cc - LINK_LIBS device_writer - DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} -) + make_executable(write_device_info + SRCS write_device_info.cc + LINK_LIBS device_writer + DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} + ) -## img_params_writer + ## img_params_writer -make_executable(write_img_params - SRCS write_img_params.cc - LINK_LIBS device_writer - DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} -) + make_executable(write_img_params + SRCS write_img_params.cc + LINK_LIBS device_writer + DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} + ) -## imu_params_writer + ## imu_params_writer -make_executable(write_imu_params - SRCS write_imu_params.cc - LINK_LIBS device_writer - DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} -) + make_executable(write_imu_params + SRCS write_imu_params.cc + LINK_LIBS device_writer + DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} + ) -## save_all_infos + ## save_all_infos -make_executable(save_all_infos - SRCS save_all_infos.cc - LINK_LIBS device_writer - DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} -) + make_executable(save_all_infos + SRCS save_all_infos.cc + LINK_LIBS device_writer + DLL_SEARCH_PATHS ${PRO_DIR}/_install/bin ${OpenCV_LIB_SEARCH_PATH} + ) + +endif() ## record