Get rid of the T.cc naming for template implementations
This commit is contained in:
@@ -24,10 +24,6 @@ set (directories
|
||||
acg_append_files (headers "*.hh" ${directories})
|
||||
acg_append_files (sources "*.cc" ${directories})
|
||||
|
||||
#Drop the template only cc files
|
||||
acg_drop_templates(sources)
|
||||
|
||||
|
||||
# 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)
|
||||
@@ -81,16 +77,16 @@ endif()
|
||||
|
||||
# Install Header Files (Apple)
|
||||
if ( NOT ACG_PROJECT_MACOS_BUNDLE AND APPLE )
|
||||
FILE(GLOB files_install_Geometry "${CMAKE_CURRENT_SOURCE_DIR}/Geometry/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/Geometry/*T.cc" )
|
||||
FILE(GLOB files_install_IO "${CMAKE_CURRENT_SOURCE_DIR}/IO/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/*T.cc" "${CMAKE_CURRENT_SOURCE_DIR}/IO/*.inl" )
|
||||
FILE(GLOB files_install_IO_importer "${CMAKE_CURRENT_SOURCE_DIR}/IO/importer/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/importer/*T.cc" )
|
||||
FILE(GLOB files_install_IO_exporter "${CMAKE_CURRENT_SOURCE_DIR}/IO/exporter/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/exporter/*T.cc" )
|
||||
FILE(GLOB files_install_IO_reader "${CMAKE_CURRENT_SOURCE_DIR}/IO/reader/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/reader/*T.cc" )
|
||||
FILE(GLOB files_install_IO_writer "${CMAKE_CURRENT_SOURCE_DIR}/IO/writer/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/writer/*T.cc" )
|
||||
FILE(GLOB files_install_Mesh "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/*T.cc" )
|
||||
FILE(GLOB files_install_Mesh_Gen "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/gen/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/gen/*T.cc" )
|
||||
FILE(GLOB files_install_System "${CMAKE_CURRENT_SOURCE_DIR}/System/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/System/*T.cc" "${CMAKE_CURRENT_SOURCE_DIR}/System/config.h" )
|
||||
FILE(GLOB files_install_Utils "${CMAKE_CURRENT_SOURCE_DIR}/Utils/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/Utils/*T.cc" )
|
||||
FILE(GLOB files_install_Geometry "${CMAKE_CURRENT_SOURCE_DIR}/Geometry/*.hh" )
|
||||
FILE(GLOB files_install_IO "${CMAKE_CURRENT_SOURCE_DIR}/IO/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/IO/*.inl" )
|
||||
FILE(GLOB files_install_IO_importer "${CMAKE_CURRENT_SOURCE_DIR}/IO/importer/*.hh" )
|
||||
FILE(GLOB files_install_IO_exporter "${CMAKE_CURRENT_SOURCE_DIR}/IO/exporter/*.hh" )
|
||||
FILE(GLOB files_install_IO_reader "${CMAKE_CURRENT_SOURCE_DIR}/IO/reader/*.hh" )
|
||||
FILE(GLOB files_install_IO_writer "${CMAKE_CURRENT_SOURCE_DIR}/IO/writer/*.hh" )
|
||||
FILE(GLOB files_install_Mesh "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/*.hh" )
|
||||
FILE(GLOB files_install_Mesh_Gen "${CMAKE_CURRENT_SOURCE_DIR}/Mesh/gen/*.hh" )
|
||||
FILE(GLOB files_install_System "${CMAKE_CURRENT_SOURCE_DIR}/System/*.hh" "${CMAKE_CURRENT_SOURCE_DIR}/System/config.h" )
|
||||
FILE(GLOB files_install_Utils "${CMAKE_CURRENT_SOURCE_DIR}/Utils/*.hh" )
|
||||
INSTALL(FILES ${files_install_Geometry} DESTINATION include/OpenMesh/Core/Geometry )
|
||||
INSTALL(FILES ${files_install_IO} DESTINATION include/OpenMesh/Core/IO )
|
||||
INSTALL(FILES ${files_install_IO_importer} DESTINATION include/OpenMesh/Core/IO/importer )
|
||||
@@ -118,17 +114,6 @@ install(DIRECTORY .
|
||||
PATTERN "Templates" EXCLUDE
|
||||
PATTERN "Debian*" EXCLUDE)
|
||||
|
||||
#install Template cc files (required by headers)
|
||||
install(DIRECTORY .
|
||||
DESTINATION include/OpenMesh/Core
|
||||
FILES_MATCHING
|
||||
PATTERN "*T.cc"
|
||||
PATTERN "CVS" EXCLUDE
|
||||
PATTERN ".svn" EXCLUDE
|
||||
PATTERN "tmp" EXCLUDE
|
||||
PATTERN "Templates" EXCLUDE
|
||||
PATTERN "Debian*" EXCLUDE)
|
||||
|
||||
#install the config file
|
||||
install(FILES System/config.h DESTINATION include/OpenMesh/Core/System)
|
||||
|
||||
@@ -138,14 +123,13 @@ install(DIRECTORY IO/
|
||||
FILES_MATCHING
|
||||
PATTERN "*.inl"
|
||||
PATTERN "CVS" EXCLUDE
|
||||
PATTERN ".svn" EXCLUDE
|
||||
PATTERN "reader" EXCLUDE
|
||||
PATTERN "writer" EXCLUDE
|
||||
PATTERN "importer" EXCLUDE
|
||||
PATTERN "exporter" EXCLUDE
|
||||
PATTERN "tmp" EXCLUDE
|
||||
PATTERN "Debian*" EXCLUDE )
|
||||
|
||||
PATTERN ".svn" EXCLUDE
|
||||
PATTERN "reader" EXCLUDE
|
||||
PATTERN "writer" EXCLUDE
|
||||
PATTERN "importer" EXCLUDE
|
||||
PATTERN "exporter" EXCLUDE
|
||||
PATTERN "tmp" EXCLUDE
|
||||
PATTERN "Debian*" EXCLUDE )
|
||||
endif ()
|
||||
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ private:
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_NORMALCONE_C)
|
||||
#define OPENMESH_NORMALCONE_TEMPLATES
|
||||
#include "NormalConeT.cc"
|
||||
#include "NormalConeT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // OPENMESH_NORMALCONE_HH defined
|
||||
|
||||
@@ -741,7 +741,7 @@ namespace OMFormat {
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_IO_OMFORMAT_CC)
|
||||
# define OPENMESH_IO_OMFORMAT_TEMPLATES
|
||||
# include "OMFormatT.cc"
|
||||
# include "OMFormatT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif
|
||||
|
||||
@@ -903,7 +903,7 @@ private:
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_ARRAY_KERNEL_C)
|
||||
# define OPENMESH_ARRAY_KERNEL_TEMPLATES
|
||||
# include "ArrayKernelT.cc"
|
||||
# include "ArrayKernelT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // OPENMESH_ARRAY_KERNEL_HH defined
|
||||
|
||||
@@ -628,7 +628,7 @@ const LHS mesh_cast(const PolyMeshT<KERNEL> *rhs) {
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_POLYMESH_C)
|
||||
# define OPENMESH_POLYMESH_TEMPLATES
|
||||
# include "PolyMeshT.cc"
|
||||
# include "PolyMeshT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // OPENMESH_POLYMESHT_HH defined
|
||||
|
||||
@@ -428,7 +428,7 @@ public:
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_TRIMESH_C)
|
||||
#define OPENMESH_TRIMESH_TEMPLATES
|
||||
#include "TriMeshT.cc"
|
||||
#include "TriMeshT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // OPENMESH_TRIMESH_HH defined
|
||||
|
||||
@@ -142,7 +142,7 @@ private:
|
||||
//=============================================================================
|
||||
#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SINGLETON_C)
|
||||
# define OPENMESH_SINGLETON_TEMPLATES
|
||||
# include "SingletonT.cc"
|
||||
# include "SingletonT_impl.hh"
|
||||
#endif
|
||||
//=============================================================================
|
||||
#endif // __SINGLETON_HH__
|
||||
|
||||
Reference in New Issue
Block a user