Commit 40e5f2dc authored by Max Lyon's avatar Max Lyon
Browse files

Add OpenVolumeMesh sources if they are there

parent 372fa676
......@@ -28,8 +28,6 @@ endif()
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
find_package (OpenVolumeMesh REQUIRED)
add_definitions(-DINCLUDE_TEMPLATES)
set (SOURCES "")
......@@ -40,6 +38,14 @@ set (LIBRARY_DIRS "")
file(GLOB SRCS "${CMAKE_CURRENT_LIST_DIR}/src/*.cc" "${CMAKE_CURRENT_LIST_DIR}/src/*.c")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/OpenVolumeMesh")
add_subdirectory(OpenVolumeMesh)
message("Building with OpenVolumeMesh")
else()
message("Not Building with OpenVolumeMesh")
endif()
find_package (OpenVolumeMesh REQUIRED)
list (APPEND SOURCES ${SRCS})
list (APPEND INCLUDE_DIRS ${OPENVOLUMEMESH_INCLUDE_DIR})
......
Supports Markdown
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