Commit b5039f0f by Jan Möbius

Merge branch 'fix_boost' into 'master'

disable file_converter if boost is not found.

See merge request !17
parents 832fcfdb 6a5b3b49
Pipeline #4118 passed with stage
in 3 minutes 43 seconds
......@@ -8,25 +8,28 @@ include_directories (
find_package(Boost 1.43.0)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
else()
set (USE_IN_SOURCE_TREE_BOOST true)
endif()
# Add target for first example
add_executable(file_converter EXCLUDE_FROM_ALL ovm_converter.cc)
add_dependencies(file_converter OpenVolumeMesh)
if(NOT WIN32)
# Link against all necessary libraries
target_link_libraries(file_converter OpenVolumeMesh)
# Set output directory to ${BINARY_DIR}/FileConverter
set_target_properties(file_converter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/FileConverter)
# Add target for first example
add_executable(file_converter EXCLUDE_FROM_ALL ovm_converter.cc)
add_dependencies(file_converter OpenVolumeMesh)
if(NOT WIN32)
# Link against all necessary libraries
target_link_libraries(file_converter OpenVolumeMesh)
# Set output directory to ${BINARY_DIR}/FileConverter
set_target_properties(file_converter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/FileConverter)
else()
# Link against all necessary libraries
target_link_libraries(file_converter OpenVolumeMesh)
endif()
else()
# Link against all necessary libraries
target_link_libraries(file_converter OpenVolumeMesh)
message(STATUS "Boost not found. Disabling file_converter.")
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