Commit 5596c3fd authored by Mike Kremer's avatar Mike Kremer

Changed CMake config file such that OpenMesh can be built stand-alone as well...

Changed CMake config file such that OpenMesh can be built stand-alone as well as external library to OpenFlipper in the libs folder.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@503 fdac6126-5c0c-442c-9429-916003d36597
parent 9c369378
cmake_minimum_required (VERSION 2.6)
project (OpenMesh)
# Only set project name if OpenMesh is built as stand-alone library
if("${PROJECT_NAME}" STREQUAL "")
project (OpenMesh)
endif()
# add our macro directory to cmake search path
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set (CMAKE_DEBUG_POSTFIX "d")
# include our cmake files
......@@ -11,7 +14,12 @@ include (ACGCommon)
acg_get_version ()
include(OpenMeshPackage)
# Disable package building when built as an external library
if(${PROJECT_NAME} MATCHES "OpenMesh")
include(OpenMeshPackage)
endif()
include (ACGOutput)
if (WIN32)
......
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