Commit adf9a36e authored by Martin Heistermann's avatar Martin Heistermann

cmake: modernize/fix file_converter

parent 7a90b4d9
include (ACGCommon)
include_directories (
..
${CMAKE_CURRENT_SOURCE_DIR}
)
find_package(Boost 1.43.0)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
# Add target for first example
add_executable(file_converter EXCLUDE_FROM_ALL ovm_converter.cc)
add_executable(file_converter ovm_converter.cc)
set_target_properties (file_converter PROPERTIES
CXX_STANDARD ${OVM_CXX_VERSION}
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
target_link_libraries(file_converter OpenVolumeMesh)
if(NOT WIN32)
set_target_properties(file_converter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/FileConverter)
endif()
target_link_libraries(file_converter OpenVolumeMesh::OpenVolumeMesh Boost::boost)
else()
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