Commit f0e50f03 authored by Jan Möbius's avatar Jan Möbius

Use OpenMesh source dir as root directory

parent 6302f46f
...@@ -5,8 +5,6 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) ...@@ -5,8 +5,6 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
set( CMAKE_CXX_STANDARD_REQUIRED TRUE ) set( CMAKE_CXX_STANDARD_REQUIRED TRUE )
set( CMAKE_CXX_STANDARD 11 ) set( CMAKE_CXX_STANDARD 11 )
set(OpenMesh_RootDir ${CMAKE_CURRENT_LIST_DIR})
enable_testing() enable_testing()
# Only set project name if OpenMesh is built as stand-alone library # Only set project name if OpenMesh is built as stand-alone library
......
...@@ -133,7 +133,7 @@ install(DIRECTORY IO/ ...@@ -133,7 +133,7 @@ install(DIRECTORY IO/
endif () endif ()
target_include_directories(OpenMeshCore PUBLIC target_include_directories(OpenMeshCore PUBLIC
$<BUILD_INTERFACE:${OpenMesh_RootDir}/src> $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>) $<INSTALL_INTERFACE:include>)
install(TARGETS OpenMeshCore EXPORT OpenMeshConfig install(TARGETS OpenMeshCore EXPORT OpenMeshConfig
......
...@@ -116,7 +116,7 @@ install(FILES Utils/getopt.h DESTINATION include/OpenMesh/Tools/Utils) ...@@ -116,7 +116,7 @@ install(FILES Utils/getopt.h DESTINATION include/OpenMesh/Tools/Utils)
endif () endif ()
target_include_directories(OpenMeshTools PUBLIC target_include_directories(OpenMeshTools PUBLIC
$<BUILD_INTERFACE:${OpenMesh_RootDir}/src> $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>) $<INSTALL_INTERFACE:include>)
install(TARGETS OpenMeshTools EXPORT OpenMeshConfig install(TARGETS OpenMeshTools EXPORT OpenMeshConfig
......
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