aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/CMakeLists.txt
blob: 68bb545011e2fb15abda98dd07f6f727e62b24b4 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
add_qtc_plugin(QmlProjectManager
  CONDITION TARGET Qt::QuickWidgets
  PLUGIN_CLASS QmlProjectPlugin
  DEPENDS QmlJS Qt::QuickWidgets Utils
  PLUGIN_DEPENDS Core ProjectExplorer QtSupport QmlDesignerBase
  SOURCES
    qmlprojectgen/qmlprojectgenerator.cpp qmlprojectgen/qmlprojectgenerator.h
    qmlprojectgen/templates.qrc
    projectfilecontenttools.cpp projectfilecontenttools.h
    qdslandingpage.cpp qdslandingpage.h
    qdslandingpagetheme.cpp qdslandingpagetheme.h
    qmlmainfileaspect.cpp qmlmainfileaspect.h
    qmlmultilanguageaspect.cpp qmlmultilanguageaspect.h
    qmlproject.cpp qmlproject.h
    qmlproject.qrc
    qmlprojectconstants.h
    qmlprojectmanager_global.h
    qmlprojectmanagertr.h
    qmlprojectplugin.cpp qmlprojectplugin.h
    qmlprojectrunconfiguration.cpp qmlprojectrunconfiguration.h
    buildsystem/qmlbuildsystem.cpp buildsystem/qmlbuildsystem.h

    "${PROJECT_SOURCE_DIR}/src/share/3rdparty/studiofonts/studiofonts.qrc"
)

extend_qtc_plugin(QmlProjectManager
    CONDITION ENABLE_COMPILE_WARNING_AS_ERROR
    PROPERTIES COMPILE_WARNING_AS_ERROR ON
)

extend_qtc_plugin(QmlProjectManager
  PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/buildsystem
  SOURCES_PREFIX ${CMAKE_CURRENT_LIST_DIR}/buildsystem
  SOURCES
      projectitem/filefilteritems.cpp projectitem/filefilteritems.h
      projectitem/qmlprojectitem.cpp projectitem/qmlprojectitem.h
      projectitem/converters.h projectitem/converters.cpp
      projectnode/qmlprojectnodes.cpp projectnode/qmlprojectnodes.h
)

extend_qtc_plugin(QmlProjectManager
  PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/cmakegen
  SOURCES_PREFIX ${CMAKE_CURRENT_LIST_DIR}/cmakegen
  SOURCES
      cmakegenerator.cpp cmakegenerator.h
      cmakewriter.cpp cmakewriter.h
      cmakewriterv0.cpp cmakewriterv0.h
      cmakewriterv1.cpp cmakewriterv1.h
      boilerplate.qrc
)

add_qtc_library(QmlProjectManagerLib OBJECT
    EXCLUDE_FROM_INSTALL
    DEPENDS
        QmlJS Utils ProjectExplorer
    INCLUDES
        ${CMAKE_CURRENT_LIST_DIR}
    SOURCES_PREFIX ${CMAKE_CURRENT_LIST_DIR}/buildsystem
    SOURCES
        projectitem/filefilteritems.cpp projectitem/filefilteritems.h
        projectitem/qmlprojectitem.cpp projectitem/qmlprojectitem.h
        projectitem/converters.cpp projectitem/converters.h
)