Commit 3d13f0bc authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: Add boost cmake files to package

parent 8a1f2ad0
Pipeline #8658 failed with stages
in 111 minutes and 27 seconds
......@@ -23,22 +23,22 @@ project(TutorialsExamples)
find_package (Boost REQUIRED COMPONENTS filesystem date_time)
add_executable(FilteringPipeline FilteringPipeline.cxx)
target_link_libraries(FilteringPipeline ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(FilteringPipeline ${OTB_LIBRARIES})
add_executable(HelloWorldOTB HelloWorldOTB.cxx)
target_link_libraries(HelloWorldOTB ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(HelloWorldOTB ${OTB_LIBRARIES})
add_executable(Multispectral Multispectral.cxx)
target_link_libraries(Multispectral ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(Multispectral ${OTB_LIBRARIES})
add_executable(OrthoFusion OrthoFusion.cxx)
target_link_libraries(OrthoFusion ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(OrthoFusion ${OTB_LIBRARIES})
add_executable(Pipeline Pipeline.cxx)
target_link_libraries(Pipeline ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(Pipeline ${OTB_LIBRARIES})
add_executable(ScalingPipeline ScalingPipeline.cxx)
target_link_libraries(ScalingPipeline ${OTB_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(ScalingPipeline ${OTB_LIBRARIES})
if(BUILD_TESTING)
find_package (Boost REQUIRED COMPONENTS filesystem date_time unit_test_framework)
......
......@@ -41,6 +41,15 @@ function(prepare_file_list file_list_result)
list(APPEND file_list "${_configured}")
endforeach()
# find Boost targets
set(_boost_targets_path
"${SUPERBUILD_INSTALL_DIR}/lib/cmake/Boost-*"
"${SUPERBUILD_INSTALL_DIR}/lib/cmake/boost_*")
file(GLOB _boost_detect_file "${SUPERBUILD_INSTALL_DIR}/lib/cmake/BoostDetectToolset-*.cmake")
set(_IMPORT_PREFIX ${SUPERBUILD_INSTALL_DIR})
list(APPEND file_list ${_boost_targets_path})
list(APPEND file_list ${_boost_detect_file})
if(HAVE_PYTHON)
list(APPEND file_list "_otbApplication${PYMODULE_EXT}")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment