Merge branch 'cmake_jan' into 'master'
Removed duplicate cmake code See merge request OpenMesh/OpenMesh!317
This commit is contained in:
@@ -23,19 +23,12 @@ if ( BUILD_APPS )
|
|||||||
add_subdirectory (VDProgMesh/Analyzer)
|
add_subdirectory (VDProgMesh/Analyzer)
|
||||||
|
|
||||||
# Add non ui apps as dependency before fixbundle
|
# Add non ui apps as dependency before fixbundle
|
||||||
if ( WIN32 )
|
if ( APPLE OR (WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" ) )
|
||||||
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
|
# let bundle generation depend on all targets
|
||||||
# let bundle generation depend on all targets
|
|
||||||
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
|
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Add non ui apps as dependency before fixbundle
|
|
||||||
if ( APPLE)
|
|
||||||
# let bundle generation depend on all targets
|
|
||||||
add_dependencies (fixbundle commandlineDecimater Dualizer mconvert Smoothing commandlineAdaptiveSubdivider commandlineSubdivider mkbalancedpm Analyzer )
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set( OpenGL_GL_PREFERENCE GLVND)
|
||||||
|
|
||||||
# find needed packages for gui applications
|
# find needed packages for gui applications
|
||||||
find_package (OpenGL)
|
find_package (OpenGL)
|
||||||
@@ -70,17 +63,12 @@ if ( BUILD_APPS )
|
|||||||
|
|
||||||
|
|
||||||
# Add ui apps as dependency before fixbundle
|
# Add ui apps as dependency before fixbundle
|
||||||
if ( WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles")
|
# Required on Windows (NOTMINGW) and APPLE
|
||||||
|
if ( APPLE OR (WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles") )
|
||||||
# let bundle generation depend on all targets
|
# let bundle generation depend on all targets
|
||||||
add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui Synthesizer)
|
add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui Synthesizer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Add ui apps as dependency before fixbundle
|
|
||||||
if ( APPLE)
|
|
||||||
# let bundle generation depend on all targets
|
|
||||||
add_dependencies (fixbundle DecimaterGui ProgViewer QtViewer SubdividerGui Synthesizer)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if ( WIN32 )
|
if ( WIN32 )
|
||||||
FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" )
|
FILE(GLOB files_install_app_dlls "${CMAKE_BINARY_DIR}/Build/*.dll" )
|
||||||
INSTALL(FILES ${files_install_app_dlls} DESTINATION . )
|
INSTALL(FILES ${files_install_app_dlls} DESTINATION . )
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ IO/OMFormatT_impl.hh
|
|||||||
IO/Options.hh
|
IO/Options.hh
|
||||||
IO/SR_binary.hh
|
IO/SR_binary.hh
|
||||||
IO/SR_binary_spec.hh
|
IO/SR_binary_spec.hh
|
||||||
|
IO/SR_binary_vector_of_bool.hh
|
||||||
IO/SR_rbo.hh
|
IO/SR_rbo.hh
|
||||||
IO/SR_store.hh
|
IO/SR_store.hh
|
||||||
IO/SR_types.hh
|
IO/SR_types.hh
|
||||||
@@ -171,18 +172,10 @@ endif ()
|
|||||||
# Add core as dependency before fixbundle
|
# Add core as dependency before fixbundle
|
||||||
if ( (${CMAKE_PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
|
if ( (${CMAKE_PROJECT_NAME} MATCHES "OpenMesh") AND BUILD_APPS )
|
||||||
|
|
||||||
if ( WIN32 )
|
if ( APPLE OR (WIN32 AND NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" ) )
|
||||||
if ( NOT "${CMAKE_GENERATOR}" MATCHES "MinGW Makefiles" )
|
|
||||||
add_dependencies (fixbundle OpenMeshCore)
|
add_dependencies (fixbundle OpenMeshCore)
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Add core as dependency before fixbundle
|
|
||||||
if ( APPLE )
|
|
||||||
# let bundle generation depend on targets
|
|
||||||
add_dependencies (fixbundle OpenMeshCore)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# if we build debug and release in the same dir, we want to install both!
|
# if we build debug and release in the same dir, we want to install both!
|
||||||
@@ -244,19 +237,6 @@ install(DIRECTORY .
|
|||||||
#install the config file
|
#install the config file
|
||||||
install(FILES System/config.h DESTINATION include/OpenMesh/Core/System)
|
install(FILES System/config.h DESTINATION include/OpenMesh/Core/System)
|
||||||
|
|
||||||
#install inlined Files from IO
|
|
||||||
install(DIRECTORY IO/
|
|
||||||
DESTINATION include/OpenMesh/Core/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 )
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
install(TARGETS OpenMeshCore EXPORT OpenMeshConfig
|
install(TARGETS OpenMeshCore EXPORT OpenMeshConfig
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ struct binary< std::vector< T >, typename std::enable_if<std::is_default_constru
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <OpenMesh/Core/IO/SR_binary_vector_of_bool.inl>
|
#include <OpenMesh/Core/IO/SR_binary_vector_of_bool.hh>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user