2009-04-15 12:29:22 +00:00
|
|
|
include (common)
|
|
|
|
|
|
|
|
|
|
include_directories (
|
|
|
|
|
../..
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
2009-04-29 12:35:14 +00:00
|
|
|
# source code directories
|
2009-04-15 12:29:22 +00:00
|
|
|
set (directories
|
|
|
|
|
.
|
|
|
|
|
Decimater
|
|
|
|
|
Smoother
|
|
|
|
|
Subdivider/Adaptive/Composite
|
|
|
|
|
Subdivider/Uniform/Composite
|
|
|
|
|
Subdivider/Uniform
|
|
|
|
|
Utils
|
|
|
|
|
)
|
|
|
|
|
|
2009-04-29 12:35:14 +00:00
|
|
|
# collect all header and source files
|
2009-04-15 12:29:22 +00:00
|
|
|
append_files (headers "*.hh" ${directories})
|
|
|
|
|
append_files (sources "*.cc" ${directories})
|
|
|
|
|
|
2009-04-15 14:36:44 +00:00
|
|
|
if (WIN32)
|
2009-04-29 12:35:14 +00:00
|
|
|
# OpenMesh has no dll exports so we have to build a static library on windows
|
|
|
|
|
add_library (OpenMeshTools STATIC ${sources} ${headers})
|
2009-04-15 14:36:44 +00:00
|
|
|
else ()
|
2009-04-29 12:35:14 +00:00
|
|
|
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 ()
|
2009-04-15 14:36:44 +00:00
|
|
|
endif ()
|
|
|
|
|
|
2009-04-15 12:29:22 +00:00
|
|
|
target_link_libraries (OpenMeshTools OpenMeshCore)
|
|
|
|
|
|
2009-04-29 12:35:14 +00:00
|
|
|
# set common target properties defined in common.cmake
|
2009-04-15 14:36:44 +00:00
|
|
|
set_target_props (OpenMeshTools)
|