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
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
cmake_minimum_required (VERSION 2.6)
|
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
|
# 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")
|
set (CMAKE_DEBUG_POSTFIX "d")
|
||||||
|
|
||||||
# include our cmake files
|
# include our cmake files
|
||||||
@@ -11,7 +14,12 @@ include (ACGCommon)
|
|||||||
|
|
||||||
acg_get_version ()
|
acg_get_version ()
|
||||||
|
|
||||||
include(OpenMeshPackage)
|
|
||||||
|
# Disable package building when built as an external library
|
||||||
|
if(${PROJECT_NAME} MATCHES "OpenMesh")
|
||||||
|
include(OpenMeshPackage)
|
||||||
|
endif()
|
||||||
|
|
||||||
include (ACGOutput)
|
include (ACGOutput)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user