CMakeLists.txt 549 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
include (ACGCommon)

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

# source code directories
set (directories 
  .
)

# collect all header and source files
acg_append_files (headers "*.hh" ${directories})
acg_append_files (sources "*.cc" ${directories})

if (WIN32)
18
  acg_add_executable (QtViewer WIN32 ${sources} ${headers})
Jan Möbius's avatar
Jan Möbius committed
19
else ()
20
  acg_add_executable (QtViewer ${sources} ${headers})
Jan Möbius's avatar
Jan Möbius committed
21 22
endif ()

23
target_link_libraries (QtViewer
Jan Möbius's avatar
Jan Möbius committed
24 25
  OpenMeshCore
  OpenMeshTools
Jan Möbius's avatar
Jan Möbius committed
26
  Qt5::OpenGL
Jan Möbius's avatar
Jan Möbius committed
27 28 29
  ${OPENGL_LIBRARIES}
)