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

30 lines
955 B
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/io_json.cmake,
### then re-run ./make-cmake.py
set(SOURCES io_json.cpp)
set(HEADERS io_json.h)
add_library(io_json MODULE ${SOURCES} ${HEADERS})
target_include_directories(io_json PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(io_json PUBLIC common)
set_property(TARGET io_json PROPERTY FOLDER Plugins)
set_property(TARGET io_json PROPERTY RUNTIME_OUTPUT_DIRECTORY
${MESHLAB_PLUGIN_OUTPUT_DIR})
set_property(TARGET io_json PROPERTY LIBRARY_OUTPUT_DIRECTORY
${MESHLAB_PLUGIN_OUTPUT_DIR})
install(
TARGETS io_json
DESTINATION ${MESHLAB_PLUGIN_INSTALL_DIR}
COMPONENT Plugins)