mod_geo-tp/CMakeLists.txt

33 lines
759 B
CMake
Raw Normal View History

2021-10-22 14:28:54 +02:00
cmake_minimum_required(VERSION 3.15)
project(tp LANGUAGES C CXX)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
add_subdirectory(external/OpenMesh)
add_executable(${PROJECT_NAME})
target_sources(${PROJECT_NAME} PRIVATE
resources.qrc
src/main.cpp
src/main_window.cpp
src/main_window.h
src/mesh_processor.cpp
src/mesh_processor.h
src/mesh_view.cpp
src/mesh_view.h
src/mesh_viewer.cpp
src/mesh_viewer.h
src/my_mesh.h
src/smoothing.cpp
src/smoothing.h
src/util.cpp
src/util.h)
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt5::Core Qt5::Gui Qt5::Widgets
OpenMeshCore)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
set_target_properties(${PROJECT_NAME} PROPERTIES
AUTOMOC ON
AUTORCC ON
AUTOUIC ON)