Commit 70d42888 authored by Jan Möbius's avatar Jan Möbius

Dennis CMAKE Documentation

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@104 fdac6126-5c0c-442c-9429-916003d36597
parent 5ca26aa1
......@@ -5,6 +5,7 @@ include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
# source code directories
set (directories
.
Geometry
......@@ -19,13 +20,21 @@ set (directories
Utils
)
# collect all header and source files
append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories})
if (WIN32)
add_library (OpenMeshCore STATIC ${sources} ${headers})
# OpenMesh has no dll exports so we have to build a static library on windows
add_library (OpenMeshCore STATIC ${sources} ${headers})
else ()
add_library (OpenMeshCore SHARED ${sources} ${headers})
add_library (OpenMeshCore SHARED ${sources} ${headers})
# no install on mac, because the whole bundle will be installed in the
# toplevel CMakeLists.txt
if (NOT APPLE)
install (TARGETS OpenMeshCore DESTINATION ${OPENFLIPPER_LIBDIR})
endif ()
endif ()
# set common target properties defined in common.cmake
set_target_props (OpenMeshCore)
......@@ -5,6 +5,7 @@ include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
# source code directories
set (directories
.
Decimater
......@@ -15,15 +16,23 @@ set (directories
Utils
)
# collect all header and source files
append_files (headers "*.hh" ${directories})
append_files (sources "*.cc" ${directories})
if (WIN32)
add_library (OpenMeshTools STATIC ${sources} ${headers})
# 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})
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment