CMakeLists.txt 676 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
include (ACGCommon)
Jan Möbius's avatar
Jan Möbius committed
2 3 4 5 6 7

include_directories (
  ../..
  ${CMAKE_CURRENT_SOURCE_DIR}
)

Jan Möbius's avatar
Jan Möbius committed
8
# source code directories
Jan Möbius's avatar
Jan Möbius committed
9 10 11 12 13 14 15 16 17 18
set (directories 
  . 
  Decimater
  Smoother
  Subdivider/Adaptive/Composite
  Subdivider/Uniform/Composite 
  Subdivider/Uniform
  Utils
)

Jan Möbius's avatar
Jan Möbius committed
19
# collect all header and source files
Jan Möbius's avatar
Jan Möbius committed
20 21
acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories})
Jan Möbius's avatar
Jan Möbius committed
22

23
if (WIN32)
Jan Möbius's avatar
Jan Möbius committed
24
  # OpenMesh has no dll exports so we have to build a static library on windows
Jan Möbius's avatar
Jan Möbius committed
25
  acg_add_library (OpenMeshTools STATIC ${sources} ${headers})
26
else ()
Jan Möbius's avatar
Jan Möbius committed
27
  acg_add_library (OpenMeshTools SHARED ${sources} ${headers})
28 29
endif ()

Jan Möbius's avatar
Jan Möbius committed
30 31
target_link_libraries (OpenMeshTools OpenMeshCore)