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