Commit cd745a4d authored by Max Lyon's avatar Max Lyon

Set cmake variable if OVM is build as part of a different project

parent 859345eb
Pipeline #5024 passed with stage
in 4 minutes and 32 seconds
......@@ -37,6 +37,12 @@ add_subdirectory (src)
if(${PROJECT_NAME} MATCHES "OpenVolumeMesh")
add_subdirectory (examples)
add_subdirectory (documentation)
else()
set (OPENVOLUMEMESH_FOUND true PARENT_SCOPE)
set (OPENVOLUMEMESH_LIBRARIES OpenVolumeMesh PARENT_SCOPE)
set (OPENVOLUMEMESH_LIBRARY OpenVolumeMesh PARENT_SCOPE)
set (OPENVOLUMEMESH_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src/" PARENT_SCOPE)
set (OPENVOLUMEMESH_LIBRARY_DIR "${CMAKE_CURRENT_BINARY_DIR}" CACHE PATH "The directory where the OpenVolumeMesh libraries can be found.")
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