Line | |
---|
1 | project(@PACPUS_COMPONENT_NAME@)
|
---|
2 |
|
---|
3 | set(${PROJECT_NAME}_VERSION_MAJOR 0)
|
---|
4 | set(${PROJECT_NAME}_VERSION_MINOR 1)
|
---|
5 |
|
---|
6 | ################################################################################
|
---|
7 | create_export(EXPORT_HDR ${PROJECT_NAME})
|
---|
8 | pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME})
|
---|
9 |
|
---|
10 | ################################################################################
|
---|
11 | # DIRECTORIES
|
---|
12 | include_directories(
|
---|
13 | ${PACPUSINCLUDE_DIRECTORY}
|
---|
14 | ${PROJECT_BINARY_DIR}
|
---|
15 | ${QT_INCLUDE_DIR}
|
---|
16 | )
|
---|
17 |
|
---|
18 | link_directories(
|
---|
19 | #${PACPUS_LIB_DIR}
|
---|
20 | )
|
---|
21 |
|
---|
22 | ################################################################################
|
---|
23 | # FILES
|
---|
24 | set(HDRS
|
---|
25 | ${EXPORT_HDR}
|
---|
26 | @PACPUS_COMPONENT_NAME@.h
|
---|
27 | @PACPUS_COMPONENT_NAME@Impl.h
|
---|
28 | )
|
---|
29 |
|
---|
30 | set(SRCS
|
---|
31 | ${PLUGIN_CPP}
|
---|
32 | @PACPUS_COMPONENT_NAME@.cpp
|
---|
33 | @PACPUS_COMPONENT_NAME@Impl.cpp
|
---|
34 | )
|
---|
35 |
|
---|
36 | set(MOC_FILES
|
---|
37 | ${PLUGIN_HDR}
|
---|
38 | @PACPUS_COMPONENT_NAME@.h
|
---|
39 | @PACPUS_COMPONENT_NAME@Impl.h
|
---|
40 | )
|
---|
41 |
|
---|
42 | set(UI_FILES
|
---|
43 | )
|
---|
44 |
|
---|
45 | ################################################################################
|
---|
46 | # QT
|
---|
47 | qt_wrap_cpp(MOC_SRCS
|
---|
48 | ${MOC_FILES}
|
---|
49 | )
|
---|
50 | qt_wrap_ui(UI_SRCS
|
---|
51 | ${UI_FILES}
|
---|
52 | )
|
---|
53 |
|
---|
54 | ################################################################################
|
---|
55 | # BUILD and LINK
|
---|
56 | pacpus_add_library(${PROJECT_NAME} SHARED
|
---|
57 | ${SRCS}
|
---|
58 | ${HDRS}
|
---|
59 | ${MOC_SRCS}
|
---|
60 | ${UI_SRCS}
|
---|
61 | )
|
---|
62 |
|
---|
63 | # LIBS
|
---|
64 | set(LIBS
|
---|
65 | ${PACPUS_LIBRARIES}
|
---|
66 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
67 | ${QT_LIBRARIES}
|
---|
68 | )
|
---|
69 |
|
---|
70 | # LINK
|
---|
71 | target_link_libraries(${PROJECT_NAME} ${LIBS})
|
---|
72 |
|
---|
73 | ################################################################################
|
---|
74 | # FOLDERS
|
---|
75 | pacpus_folder(${PROJECT_NAME} "components")
|
---|
76 |
|
---|
77 | ################################################################################
|
---|
78 | # INSTALL
|
---|
79 | pacpus_install(${PROJECT_NAME})
|
---|
80 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.