Merge branch 'master' into CustomProperties
This commit is contained in:
@@ -25,7 +25,7 @@ vci_append_files (headers "*.hh" ${directories})
|
||||
vci_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")
|
||||
if ( NOT ${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
|
||||
set(VCI_NO_LIBRARY_INSTALL true)
|
||||
endif()
|
||||
|
||||
@@ -42,8 +42,8 @@ if (WIN32)
|
||||
|
||||
else ()
|
||||
vci_add_library (OpenMeshCore SHAREDANDSTATIC ${sources} ${headers})
|
||||
set_target_properties (OpenMeshCore PROPERTIES VERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR}
|
||||
SOVERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR} )
|
||||
set_target_properties (OpenMeshCore PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
|
||||
SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} )
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
@@ -51,7 +51,7 @@ if (MSVC)
|
||||
endif ()
|
||||
|
||||
# Add core as dependency before fixbundle
|
||||
if ( (${PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
|
||||
if ( (${CMAKE_PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
|
||||
|
||||
if ( WIN32 )
|
||||
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
|
||||
@@ -68,7 +68,7 @@ if ( (${PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
|
||||
endif()
|
||||
|
||||
# if we build debug and release in the same dir, we want to install both!
|
||||
if ( ${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
if ( ${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
|
||||
if ( WIN32 )
|
||||
FILE(GLOB files_install_libs "${CMAKE_BINARY_DIR}/Build/lib/*.lib" )
|
||||
FILE(GLOB files_install_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" )
|
||||
@@ -104,7 +104,13 @@ endif()
|
||||
|
||||
|
||||
# Only install if the project name matches OpenMesh.
|
||||
if (NOT APPLE AND ${PROJECT_NAME} MATCHES "OpenMesh")
|
||||
if (${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
|
||||
set (OPENMESH_NO_INSTALL_HEADERS FALSE CACHE BOOL "Should OpenMesh skip installing headers?")
|
||||
else()
|
||||
set (OPENMESH_NO_INSTALL_HEADERS TRUE CACHE BOOL "Should OpenMesh skip installing headers?")
|
||||
endif()
|
||||
|
||||
if (NOT APPLE AND NOT ${OPENMESH_NO_INSTALL_HEADERS})
|
||||
|
||||
# Install Header Files)
|
||||
install(DIRECTORY .
|
||||
|
||||
Reference in New Issue
Block a user