CMakeLists.txt 698 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
include (ACGCommon)

include_directories (
  ..
  ${CMAKE_CURRENT_SOURCE_DIR}
)

find_package(Boost 1.43.0)
if(Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
11 12 13

  # Add target for first example
  add_executable(file_converter EXCLUDE_FROM_ALL ovm_converter.cc)
14 15 16 17 18 19
  set_target_properties (file_converter PROPERTIES
      CXX_STANDARD ${OVM_CXX_VERSION}
      CXX_STANDARD_REQUIRED YES
      CXX_EXTENSIONS NO
    )
  target_link_libraries(file_converter OpenVolumeMesh)
20 21 22 23 24

  if(NOT WIN32)
      set_target_properties(file_converter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/FileConverter)
  endif()

25 26
else()

Jan Möbius's avatar
Jan Möbius committed
27
  message(STATUS "Boost not found. Disabling file_converter.")
28 29

endif()