Implement disabling of automatic library installation
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@369 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -24,6 +24,12 @@ set (directories
|
||||
acg_append_files (headers "*.hh" ${directories})
|
||||
acg_append_files (sources "*.cc" ${directories})
|
||||
|
||||
# Disable Library installation when not building OpenMesh on its own but as part of another project!
|
||||
if ( NOT ${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
set(ACG_NO_LIBRARY_INSTALL true)
|
||||
endif()
|
||||
|
||||
|
||||
if (WIN32)
|
||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||
acg_add_library (OpenMeshCore STATIC ${sources} ${headers})
|
||||
|
||||
@@ -26,6 +26,12 @@ IF(WIN32)
|
||||
acg_append_files (sources "*.c" ${directories})
|
||||
ENDIF(WIN32)
|
||||
|
||||
# Disable Library installation when not building OpenMesh on its own but as part of another project!
|
||||
if ( NOT ${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
set(ACG_NO_LIBRARY_INSTALL true)
|
||||
endif()
|
||||
|
||||
|
||||
if (WIN32)
|
||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||
acg_add_library (OpenMeshTools STATIC ${sources} ${headers})
|
||||
|
||||
Reference in New Issue
Block a user