Changed OpenMesh directory structure
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@106 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
38
src/OpenMesh/Tools/CMakeLists.txt
Normal file
38
src/OpenMesh/Tools/CMakeLists.txt
Normal file
@@ -0,0 +1,38 @@
|
||||
include (common)
|
||||
|
||||
include_directories (
|
||||
../..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# source code directories
|
||||
set (directories
|
||||
.
|
||||
Decimater
|
||||
Smoother
|
||||
Subdivider/Adaptive/Composite
|
||||
Subdivider/Uniform/Composite
|
||||
Subdivider/Uniform
|
||||
Utils
|
||||
)
|
||||
|
||||
# collect all header and source files
|
||||
append_files (headers "*.hh" ${directories})
|
||||
append_files (sources "*.cc" ${directories})
|
||||
|
||||
if (WIN32)
|
||||
# OpenMesh has no dll exports so we have to build a static library on windows
|
||||
add_library (OpenMeshTools STATIC ${sources} ${headers})
|
||||
else ()
|
||||
add_library (OpenMeshTools SHARED ${sources} ${headers})
|
||||
# no install on mac, because the whole bundle will be installed in the
|
||||
# toplevel CMakeLists.txt
|
||||
if (NOT APPLE)
|
||||
install (TARGETS OpenMeshTools DESTINATION ${OPENFLIPPER_LIBDIR})
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
target_link_libraries (OpenMeshTools OpenMeshCore)
|
||||
|
||||
# set common target properties defined in common.cmake
|
||||
set_target_props (OpenMeshTools)
|
||||
Reference in New Issue
Block a user