File: CMakeLists.txt

package info (click to toggle)
meshlab 2020.09%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 45,124 kB
  • sloc: cpp: 400,238; ansic: 31,952; javascript: 1,578; sh: 387; yacc: 238; lex: 139; python: 86; makefile: 29
file content (37 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2019-2020, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0

### Generated file! Edit the templates in src/templates,
### specifically src/templates/io_ctm.cmake (custom for this directory),
### then re-run ./make-cmake.py

# Only build if we have OpenCTM
if(TARGET external-openctm)

    set(SOURCES io_ctm.cpp)

    set(HEADERS io_ctm.h)

    add_library(io_ctm MODULE ${SOURCES} ${HEADERS})

    target_include_directories(io_ctm PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
    target_link_libraries(io_ctm PUBLIC common)

    target_link_libraries(io_ctm PRIVATE external-openctm)

    set_property(TARGET io_ctm PROPERTY FOLDER Plugins)

    set_property(TARGET io_ctm PROPERTY RUNTIME_OUTPUT_DIRECTORY
                                        ${MESHLAB_PLUGIN_OUTPUT_DIR})

    set_property(TARGET io_ctm PROPERTY LIBRARY_OUTPUT_DIRECTORY
                                        ${MESHLAB_PLUGIN_OUTPUT_DIR})

    install(
        TARGETS io_ctm
        DESTINATION ${MESHLAB_PLUGIN_INSTALL_DIR}
        COMPONENT Plugins)

else()
    message(STATUS "Skipping io_ctm - missing OpenCTM.")
endif()