Ryan Pavlik 2e69c640c8 Update build file template and generated files for better docs.
Also using a newer cmake-format version from
https://github.com/rpavlik/cmake_format
so formatting is better.
2020-05-06 16:57:44 -05:00

34 lines
1.0 KiB
CMake

# Copyright 2019-2020, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0
### Generated file! Edit the templates in src/templates,
### specifically src/templates/CMakeLists.template.cmake (shared with all other directories),
### or create a derived template in src/templates/edit_scan.cmake,
### then re-run ./make-cmake.py
set(SOURCES edit_scan.cpp)
set(HEADERS edit_scan.h widget.h)
set(RESOURCES meshlab.qrc)
set(UI widget.ui)
add_library(edit_scan MODULE ${SOURCES} ${HEADERS} ${RESOURCES} ${UI})
target_include_directories(edit_scan PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(edit_scan PUBLIC common)
set_property(TARGET edit_scan PROPERTY FOLDER Plugins)
set_property(TARGET edit_scan PROPERTY RUNTIME_OUTPUT_DIRECTORY
${MESHLAB_PLUGIN_OUTPUT_DIR})
set_property(TARGET edit_scan PROPERTY LIBRARY_OUTPUT_DIRECTORY
${MESHLAB_PLUGIN_OUTPUT_DIR})
install(
TARGETS edit_scan
DESTINATION ${MESHLAB_PLUGIN_INSTALL_DIR}
COMPONENT Plugins)