2009-04-15 12:29:22 +00:00
|
|
|
include (common)
|
|
|
|
|
|
|
|
|
|
include_directories (
|
|
|
|
|
../..
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set (directories
|
|
|
|
|
.
|
|
|
|
|
Geometry
|
|
|
|
|
IO
|
|
|
|
|
IO/exporter
|
|
|
|
|
IO/importer
|
|
|
|
|
IO/reader
|
|
|
|
|
IO/writer
|
|
|
|
|
Mesh
|
|
|
|
|
Mesh/gen
|
|
|
|
|
System
|
|
|
|
|
Utils
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
append_files (headers "*.hh" ${directories})
|
|
|
|
|
append_files (sources "*.cc" ${directories})
|
|
|
|
|
|
2009-04-15 14:36:44 +00:00
|
|
|
if (WIN32)
|
2009-04-15 12:29:22 +00:00
|
|
|
add_library (OpenMeshCore STATIC ${sources} ${headers})
|
2009-04-15 14:36:44 +00:00
|
|
|
else ()
|
|
|
|
|
add_library (OpenMeshCore SHARED ${sources} ${headers})
|
|
|
|
|
endif ()
|
2009-04-15 12:29:22 +00:00
|
|
|
|
2009-04-15 14:36:44 +00:00
|
|
|
set_target_props (OpenMeshCore)
|