1 | project(StdDbtPlayerComponents)
|
---|
2 |
|
---|
3 | ################################################################################
|
---|
4 | add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS )
|
---|
5 |
|
---|
6 | # ========================================
|
---|
7 | # Configure qt4
|
---|
8 | # ========================================
|
---|
9 | if(QT4_FOUND)
|
---|
10 | set(QT_USE_QTXML true)
|
---|
11 | set(QT_USE_QTNETWORK true)
|
---|
12 | include(${QT_USE_FILE})
|
---|
13 | else()
|
---|
14 | message(ERROR "Qt4 needed")
|
---|
15 | endif()
|
---|
16 |
|
---|
17 | # ========================================
|
---|
18 | # Compiler definitions
|
---|
19 | # ========================================
|
---|
20 | add_definitions(
|
---|
21 | ${QT_DEFINITIONS}
|
---|
22 | )
|
---|
23 |
|
---|
24 | # ========================================
|
---|
25 | # Include directories
|
---|
26 | # ========================================
|
---|
27 | include_directories(
|
---|
28 | ${PROJECT_BINARY_DIR}
|
---|
29 | ${QT_INCLUDE_DIR}
|
---|
30 | )
|
---|
31 |
|
---|
32 | # ========================================
|
---|
33 | # Link directories
|
---|
34 | # ========================================
|
---|
35 | link_directories( ${PACPUS_LIB_DIR}
|
---|
36 | )
|
---|
37 |
|
---|
38 | pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
|
---|
39 |
|
---|
40 | set(HDRS
|
---|
41 | DbtPlyImageManager.h
|
---|
42 | DbtPlyStereoManager.h
|
---|
43 | ImageViewer.h
|
---|
44 | StdDbtPlayerComponentsConfig.h
|
---|
45 | )
|
---|
46 |
|
---|
47 |
|
---|
48 | # ========================================
|
---|
49 | # List of sources
|
---|
50 | # ========================================
|
---|
51 | set(
|
---|
52 | PROJECT_SRCS
|
---|
53 | DbtPlyImageManager.cpp
|
---|
54 | DbtPlyStereoManager.cpp
|
---|
55 | ImageViewer.cpp
|
---|
56 | ${HDRS}
|
---|
57 | ${PLUGIN_CPP}
|
---|
58 | )
|
---|
59 |
|
---|
60 | # ========================================
|
---|
61 | # Files to MOC
|
---|
62 | # ========================================
|
---|
63 | set(
|
---|
64 | FILES_TO_MOC
|
---|
65 | DbtPlyImageManager.h
|
---|
66 | DbtPlyStereoManager.h
|
---|
67 | ImageViewer.h
|
---|
68 | ${PLUGIN_H}
|
---|
69 | )
|
---|
70 |
|
---|
71 |
|
---|
72 | set(
|
---|
73 | UI_FILES
|
---|
74 |
|
---|
75 | )
|
---|
76 |
|
---|
77 | # ========================================
|
---|
78 | # Call MOC
|
---|
79 | # ========================================
|
---|
80 | qt4_wrap_cpp(
|
---|
81 | PROJECT_MOC_SRCS
|
---|
82 | ${FILES_TO_MOC}
|
---|
83 | )
|
---|
84 |
|
---|
85 | qt4_wrap_ui(
|
---|
86 | PROJECT_UI_SRCS
|
---|
87 | ${UI_FILES}
|
---|
88 | )
|
---|
89 |
|
---|
90 | # ========================================
|
---|
91 | # Build a library
|
---|
92 | # ========================================
|
---|
93 | pacpus_add_library(
|
---|
94 | ${PROJECT_NAME} SHARED
|
---|
95 | ${PROJECT_SRCS}
|
---|
96 | ${PROJECT_MOC_SRCS}
|
---|
97 | ${PROJECT_UI_SRCS}
|
---|
98 | )
|
---|
99 |
|
---|
100 | set(LIBS
|
---|
101 | optimized FileLib debug FileLib_d
|
---|
102 | optimized PacpusLib debug PacpusLib_d
|
---|
103 | optimized PacpusTools debug PacpusTools_d
|
---|
104 | )
|
---|
105 | if (WIN32)
|
---|
106 | list(APPEND LIBS
|
---|
107 | optimized ROAD_TIME debug ROAD_TIME_d
|
---|
108 | )
|
---|
109 | endif()
|
---|
110 |
|
---|
111 | # ========================================
|
---|
112 | # Libraries
|
---|
113 | # ========================================
|
---|
114 | # All the platform
|
---|
115 | target_link_libraries(
|
---|
116 | ${PROJECT_NAME}
|
---|
117 | ${PACPUS_LIBRARIES}
|
---|
118 | ${QT_LIBRARIES}
|
---|
119 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
120 | ${LIBS}
|
---|
121 | )
|
---|
122 |
|
---|
123 | pacpus_folder(${PROJECT_NAME} "components")
|
---|
124 |
|
---|
125 | # ========================================
|
---|
126 | # Install
|
---|
127 | # ========================================
|
---|
128 | pacpus_install(${PROJECT_NAME})
|
---|
129 |
|
---|