Merge branch 'VERSION_file_removal' into 'master'

Version file removal

See merge request OpenMesh/OpenMesh!294
This commit is contained in:
Jan Möbius
2021-01-20 14:43:02 +01:00
9 changed files with 22 additions and 28 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
.project .project
.cproject .cproject
CMakeLists.txt.user CMakeLists.txt.user*
build* build*
*.swp *.swp
.settings .settings

View File

@@ -7,10 +7,8 @@ set( CMAKE_CXX_STANDARD 11 )
enable_testing() enable_testing()
# Only set project name if OpenMesh is built as stand-alone library
if("${PROJECT_NAME}" STREQUAL "") project (OpenMesh VERSION 9.0.0)
project (OpenMesh)
endif()
# Set AUTO UIC/MOC Policy to new for CMAKE 3.17 or higher # Set AUTO UIC/MOC Policy to new for CMAKE 3.17 or higher
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17") if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17")
@@ -43,11 +41,8 @@ set (CMAKE_DEBUG_POSTFIX "d")
# include our cmake files # include our cmake files
include (VCICommon) include (VCICommon)
vci_get_version ()
# Disable package building when built as an external library # Disable package building when built as an external library
if(${PROJECT_NAME} MATCHES "OpenMesh") if(${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
include(OpenMeshPackage) include(OpenMeshPackage)
endif() endif()
@@ -88,7 +83,7 @@ if ( NOT DEFINED BUILD_APPS )
endif() endif()
# Only call fixbundle, when we are building OpenMesh standalone # Only call fixbundle, when we are building OpenMesh standalone
if( (${PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS ) if( (${CMAKE_PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
if (WIN32) if (WIN32)
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" AND BUILD_APPS ) if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" AND BUILD_APPS )
@@ -120,7 +115,7 @@ if (OPENMESH_BENCHMARK_DIR)
endif() endif()
# Do not build unit tests when build as external library # Do not build unit tests when build as external library
if(${PROJECT_NAME} MATCHES "OpenMesh") if(${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
add_subdirectory (src/Unittests) add_subdirectory (src/Unittests)
else() else()
# If built as a dependent project simulate effects of # If built as a dependent project simulate effects of
@@ -152,7 +147,7 @@ endif()
# ======================================================================== # ========================================================================
# Only call fixbundle, when we are building OpenMesh standalone # Only call fixbundle, when we are building OpenMesh standalone
if(${PROJECT_NAME} MATCHES "OpenMesh") if(${CMAKE_PROJECT_NAME} MATCHES "OpenMesh")
if (WIN32 AND BUILD_APPS) if (WIN32 AND BUILD_APPS)
# prepare bundle generation cmake file and add a build target for it # prepare bundle generation cmake file and add a build target for it

View File

@@ -26,11 +26,16 @@
<b>IO</b> <b>IO</b>
<ul> <ul>
<li>STL Reader: Change stl reader behaviour on extension .stl , Don't check for the solid keyword explicitly</li> <li>STL Reader: Change stl reader behaviour on extension .stl , Don't check for the solid keyword explicitly</li>
<li>OM Writer: Removed debug output</li>
</ul> </ul>
<b>Build System</b> <b>Build System</b>
<ul> <ul>
<li>Dropped 32-bit Windows continuous integration and artifact builds.</li> <li>Dropped 32-bit Windows continuous integration and artifact builds.</li>
<li>Removed the VERSION file and do it via cmakes project call)
<li>Switched to external cmake-library used by all of our projects now</li>
<li>Removed custom Eigen3 finder. Eigen3 has full cmake support. (You can point OpenMesh to eigen via -DEigen3_DIR="c:\<path>" )
<li>Added support for and fixed some issues with VS2019</li>
</ul> </ul>
</tr> </tr>

View File

@@ -1,6 +0,0 @@
VERSION=9.0
MAJOR=9
MINOR=0
PATCH=0
ID=OPENMESH

View File

@@ -10,10 +10,10 @@ set (CPACK_PACKAGE_NAME "OpenMesh")
set (CPACK_PACKAGE_VENDOR "VCI") set (CPACK_PACKAGE_VENDOR "VCI")
# set version # set version
set (CPACK_PACKAGE_VERSION_MAJOR "${OPENMESH_VERSION_MAJOR}") set (CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${OPENMESH_VERSION_MINOR}") set (CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}")
set (CPACK_PACKAGE_VERSION_PATCH "${OPENMESH_VERSION_PATCH}") set (CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")
set (CPACK_PACKAGE_VERSION "${OPENMESH_VERSION}") set (CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
# addition package info # addition package info
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenMesh") set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenMesh")

View File

@@ -5,7 +5,7 @@ includedir=${prefix}/include
Name: libOpenMesh Name: libOpenMesh
Description: OpenMesh library Description: OpenMesh library
Version: @OPENMESH_VERSION_MAJOR@.@OPENMESH_VERSION_MINOR@ Version: @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@
Libs: -L${libdir} @PRIVATE_LIBS@ Libs: -L${libdir} @PRIVATE_LIBS@
Cflags: -I${includedir} Cflags: -I${includedir}

View File

@@ -42,8 +42,8 @@ if (WIN32)
else () else ()
vci_add_library (OpenMeshCore SHAREDANDSTATIC ${sources} ${headers}) vci_add_library (OpenMeshCore SHAREDANDSTATIC ${sources} ${headers})
set_target_properties (OpenMeshCore PROPERTIES VERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR} set_target_properties (OpenMeshCore PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
SOVERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR} ) SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} )
endif () endif ()

View File

@@ -44,8 +44,8 @@ if (WIN32)
else () else ()
vci_add_library (OpenMeshTools SHAREDANDSTATIC ${sources} ${headers}) vci_add_library (OpenMeshTools SHAREDANDSTATIC ${sources} ${headers})
set_target_properties (OpenMeshTools PROPERTIES VERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR} set_target_properties (OpenMeshTools PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
SOVERSION ${OPENMESH_VERSION_MAJOR}.${OPENMESH_VERSION_MINOR} ) SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} )
endif () endif ()
target_link_libraries (OpenMeshTools OpenMeshCore) target_link_libraries (OpenMeshTools OpenMeshCore)