Update cmake files
This commit is contained in:
parent
25f72dd74f
commit
0153261447
|
@ -237,6 +237,22 @@ install(EXPORT ${MYNTEYE_NAME}-targets
|
||||||
|
|
||||||
## build.info
|
## build.info
|
||||||
|
|
||||||
|
# set default int values for yaml file (build.info)
|
||||||
|
set_default_value(CMAKE_CXX_COMPILER_VERSION_MAJOR 0)
|
||||||
|
set_default_value(CMAKE_CXX_COMPILER_VERSION_MINOR 0)
|
||||||
|
set_default_value(CMAKE_CXX_COMPILER_VERSION_PATCH 0)
|
||||||
|
set_default_value(CMAKE_CXX_COMPILER_VERSION_TWEAK 0)
|
||||||
|
set_default_value(CUDA_VERSION_MAJOR 0)
|
||||||
|
set_default_value(CUDA_VERSION_MINOR 0)
|
||||||
|
set_default_value(OpenCV_VERSION_MAJOR 0)
|
||||||
|
set_default_value(OpenCV_VERSION_MINOR 0)
|
||||||
|
set_default_value(OpenCV_VERSION_PATCH 0)
|
||||||
|
set_default_value(OpenCV_VERSION_TWEAK 0)
|
||||||
|
set_default_value(${PROJECT_NAME}_VERSION_MAJOR 0)
|
||||||
|
set_default_value(${PROJECT_NAME}_VERSION_MINOR 0)
|
||||||
|
set_default_value(${PROJECT_NAME}_VERSION_PATCH 0)
|
||||||
|
set_default_value(${PROJECT_NAME}_VERSION_TWEAK 0)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
cmake/templates/build.info.in
|
cmake/templates/build.info.in
|
||||||
build.info @ONLY
|
build.info @ONLY
|
||||||
|
|
|
@ -61,25 +61,10 @@ endif()
|
||||||
|
|
||||||
find_package(CUDA QUIET)
|
find_package(CUDA QUIET)
|
||||||
|
|
||||||
# set default int values for yaml file (build.info)
|
|
||||||
set_version_values(CMAKE_CXX_COMPILER_VERSION)
|
|
||||||
set_default_value(CMAKE_CXX_COMPILER_VERSION_MAJOR 0)
|
|
||||||
set_default_value(CMAKE_CXX_COMPILER_VERSION_MINOR 0)
|
|
||||||
set_default_value(CMAKE_CXX_COMPILER_VERSION_PATCH 0)
|
|
||||||
set_default_value(CMAKE_CXX_COMPILER_VERSION_TWEAK 0)
|
|
||||||
set_default_value(CUDA_VERSION_MAJOR 0)
|
|
||||||
set_default_value(CUDA_VERSION_MINOR 0)
|
|
||||||
set_default_value(OpenCV_VERSION_MAJOR 0)
|
|
||||||
set_default_value(OpenCV_VERSION_MINOR 0)
|
|
||||||
set_default_value(OpenCV_VERSION_PATCH 0)
|
|
||||||
set_default_value(OpenCV_VERSION_TWEAK 0)
|
|
||||||
set_default_value(${PROJECT_NAME}_VERSION_MAJOR 0)
|
|
||||||
set_default_value(${PROJECT_NAME}_VERSION_MINOR 0)
|
|
||||||
set_default_value(${PROJECT_NAME}_VERSION_PATCH 0)
|
|
||||||
set_default_value(${PROJECT_NAME}_VERSION_TWEAK 0)
|
|
||||||
|
|
||||||
# summary
|
# summary
|
||||||
|
|
||||||
|
set_version_values(CMAKE_CXX_COMPILER_VERSION)
|
||||||
|
|
||||||
status("")
|
status("")
|
||||||
status("Platform:")
|
status("Platform:")
|
||||||
status(" HOST_OS: ${HOST_OS}")
|
status(" HOST_OS: ${HOST_OS}")
|
||||||
|
@ -91,22 +76,28 @@ status(" COMPILER_VERSION_MAJOR: ${CMAKE_CXX_COMPILER_VERSION_MAJOR}")
|
||||||
status(" COMPILER_VERSION_MINOR: ${CMAKE_CXX_COMPILER_VERSION_MINOR}")
|
status(" COMPILER_VERSION_MINOR: ${CMAKE_CXX_COMPILER_VERSION_MINOR}")
|
||||||
status(" COMPILER_VERSION_PATCH: ${CMAKE_CXX_COMPILER_VERSION_PATCH}")
|
status(" COMPILER_VERSION_PATCH: ${CMAKE_CXX_COMPILER_VERSION_PATCH}")
|
||||||
status(" COMPILER_VERSION_TWEAK: ${CMAKE_CXX_COMPILER_VERSION_TWEAK}")
|
status(" COMPILER_VERSION_TWEAK: ${CMAKE_CXX_COMPILER_VERSION_TWEAK}")
|
||||||
status(" CUDA_VERSION: ${CUDA_VERSION}")
|
if(CUDA_FOUND)
|
||||||
status(" CUDA_VERSION_MAJOR: ${CUDA_VERSION_MAJOR}")
|
status(" CUDA_VERSION: ${CUDA_VERSION}")
|
||||||
status(" CUDA_VERSION_MINOR: ${CUDA_VERSION_MINOR}")
|
status(" CUDA_VERSION_MAJOR: ${CUDA_VERSION_MAJOR}")
|
||||||
status(" CUDA_VERSION_STRING: ${CUDA_VERSION_STRING}")
|
status(" CUDA_VERSION_MINOR: ${CUDA_VERSION_MINOR}")
|
||||||
status(" OpenCV_VERSION: ${OpenCV_VERSION}")
|
status(" CUDA_VERSION_STRING: ${CUDA_VERSION_STRING}")
|
||||||
status(" OpenCV_VERSION_MAJOR: ${OpenCV_VERSION_MAJOR}")
|
endif()
|
||||||
status(" OpenCV_VERSION_MINOR: ${OpenCV_VERSION_MINOR}")
|
if(OpenCV_FOUND)
|
||||||
status(" OpenCV_VERSION_PATCH: ${OpenCV_VERSION_PATCH}")
|
status(" OpenCV_VERSION: ${OpenCV_VERSION}")
|
||||||
status(" OpenCV_VERSION_TWEAK: ${OpenCV_VERSION_TWEAK}")
|
status(" OpenCV_VERSION_MAJOR: ${OpenCV_VERSION_MAJOR}")
|
||||||
status(" OpenCV_VERSION_STATUS: ${OpenCV_VERSION_STATUS}")
|
status(" OpenCV_VERSION_MINOR: ${OpenCV_VERSION_MINOR}")
|
||||||
status(" OpenCV_WITH_WORLD: ${WITH_OPENCV_WORLD}")
|
status(" OpenCV_VERSION_PATCH: ${OpenCV_VERSION_PATCH}")
|
||||||
status(" MYNTEYE_VERSION: ${mynteye_VERSION}")
|
status(" OpenCV_VERSION_TWEAK: ${OpenCV_VERSION_TWEAK}")
|
||||||
status(" MYNTEYE_VERSION_MAJOR: ${mynteye_VERSION_MAJOR}")
|
status(" OpenCV_VERSION_STATUS: ${OpenCV_VERSION_STATUS}")
|
||||||
status(" MYNTEYE_VERSION_MINOR: ${mynteye_VERSION_MINOR}")
|
status(" OpenCV_WITH_WORLD: ${WITH_OPENCV_WORLD}")
|
||||||
status(" MYNTEYE_VERSION_PATCH: ${mynteye_VERSION_PATCH}")
|
endif()
|
||||||
status(" MYNTEYE_VERSION_TWEAK: ${mynteye_VERSION_TWEAK}")
|
if(mynteye_VERSION)
|
||||||
|
status(" MYNTEYE_VERSION: ${mynteye_VERSION}")
|
||||||
|
status(" MYNTEYE_VERSION_MAJOR: ${mynteye_VERSION_MAJOR}")
|
||||||
|
status(" MYNTEYE_VERSION_MINOR: ${mynteye_VERSION_MINOR}")
|
||||||
|
status(" MYNTEYE_VERSION_PATCH: ${mynteye_VERSION_PATCH}")
|
||||||
|
status(" MYNTEYE_VERSION_TWEAK: ${mynteye_VERSION_TWEAK}")
|
||||||
|
endif()
|
||||||
|
|
||||||
status("")
|
status("")
|
||||||
status("Options:")
|
status("Options:")
|
||||||
|
|
|
@ -79,4 +79,6 @@ add_subdirectory(uvc)
|
||||||
|
|
||||||
# tutorials
|
# tutorials
|
||||||
|
|
||||||
add_subdirectory(tutorials)
|
if(WITH_API)
|
||||||
|
add_subdirectory(tutorials)
|
||||||
|
endif()
|
||||||
|
|
|
@ -63,7 +63,7 @@ macro(make_executable2 NAME)
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if(WITH_API)
|
# packages
|
||||||
|
|
||||||
# If you install PCL to different directory, please set CMAKE_PREFIX_PATH to find it.
|
# If you install PCL to different directory, please set CMAKE_PREFIX_PATH to find it.
|
||||||
#LIST(APPEND CMAKE_PREFIX_PATH /usr/local/share)
|
#LIST(APPEND CMAKE_PREFIX_PATH /usr/local/share)
|
||||||
|
@ -124,8 +124,6 @@ make_executable2(ctrl_manual_exposure
|
||||||
)
|
)
|
||||||
make_executable2(ctrl_infrared SRCS control/infrared.cc WITH_OPENCV)
|
make_executable2(ctrl_infrared SRCS control/infrared.cc WITH_OPENCV)
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# intermediate level
|
# intermediate level
|
||||||
|
|
||||||
make_executable2(get_all_device_info SRCS intermediate/get_all_device_info.cc WITH_OPENCV)
|
make_executable2(get_all_device_info SRCS intermediate/get_all_device_info.cc WITH_OPENCV)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user