File: CMakeLists.txt

package info (click to toggle)
camitk 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 389,496 kB
  • sloc: cpp: 103,476; sh: 2,448; python: 1,618; xml: 984; makefile: 128; perl: 84; sed: 20
file content (46 lines) | stat: -rw-r--r-- 2,200 bytes parent folder | download
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
38
39
40
41
42
43
44
45
46
#--------------------------------------------
#         CamiTK Extension Project
#--------------------------------------------

# additional settings generated by camitk-extensiongenerator
set(EXTENSION_GENERATOR_CAMITK_DIR "/home/promayon/Dev/CamiTK/src/camitk/build")
set(EXTENSION_GENERATOR_CMAKE_MODULE_PATH "/home/promayon/Dev/CamiTK/src/camitk/build/share/camitk-6.0/cmake;/home/promayon/Dev/CamiTK/src/camitk/build/share/camitk-6.0/cmake/macros")

if (NOT CEP_NAME)
    # There is no CEP declared → the extension is standalone → setup a CEP for this extension
    cmake_minimum_required(VERSION 3.20)

    project(renameActionExtensionHotPlug)

    # Find CamiTK SDK
    set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR} ${EXTENSION_GENERATOR_CMAKE_MODULE_PATH})

    # CamiTK requires C++20
    # All target after this declaration will be compile with c++20 policy
    set(CMAKE_CXX_STANDARD 20)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
    set(CMAKE_CXX_EXTENSIONS OFF) # for wider compatibility across plateforms and compiler

    find_package(CamiTK REQUIRED)
    include(${CAMITK_USE_FILE})

    # define the CEP and add all possible subprojects
    camitk_extension_project(NAME "rename-action-extension-hotplug" 
                            CONTACT "Emmanuel Promayon <Emmanuel.Promayon@univ-grenoble-alpes.fr>"
                            DESCRIPTION "CEP for \"Rename Action Extension (HotPlug)\" extension"
                            LICENSE "LGPL-3 CamiTK"
                            ENABLED
                            # Uncomment the next line to activate the CamiTK testing framework 
                            # and enable component and action automatic tests
                            #ENABLE_TESTING
                            # Uncomment the next line to be able to generate a test coverage html report
                            #ENABLE_TEST_COVERAGE
    )
else()
    # This extension is inside a project, just add all possible subprojects
    camitk_add_subdirectory(libraries)
    camitk_add_subdirectory(components)
    camitk_add_subdirectory(actions)
    camitk_add_subdirectory(viewers)
    camitk_add_subdirectory(applications)
endif()