- Support building on FreeBSD

- Generate OpenMeshConfig.cmake

Thanks to Thibault Payet for the patch
This commit is contained in:
Jan Möbius
2019-04-09 07:45:54 +02:00
parent 6d2b8b8b80
commit 6302f46f65
6 changed files with 171 additions and 122 deletions

View File

@@ -132,4 +132,12 @@ install(DIRECTORY IO/
PATTERN "Debian*" EXCLUDE )
endif ()
target_include_directories(OpenMeshCore PUBLIC
$<BUILD_INTERFACE:${OpenMesh_RootDir}/src>
$<INSTALL_INTERFACE:include>)
install(TARGETS OpenMeshCore EXPORT OpenMeshConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})