[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 | StdDbtPlayerComponentsConfig.h
|
---|
[50] | 24 | # DbtPlySickLMSManager.h
|
---|
| 25 | # DbtPlySickLDMRSManager.h
|
---|
[16] | 26 | )
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | # ========================================
|
---|
| 30 | # List of sources
|
---|
| 31 | # ========================================
|
---|
| 32 | set(
|
---|
| 33 | PROJECT_SRCS
|
---|
[50] | 34 | # DbtPlySickLMSManager.cpp
|
---|
| 35 | # DbtPlySickLDMRSManager.cpp
|
---|
[16] | 36 | ${HDRS}
|
---|
| 37 | ${PLUGIN_CPP}
|
---|
| 38 | )
|
---|
| 39 |
|
---|
| 40 | # ========================================
|
---|
| 41 | # Files to MOC
|
---|
| 42 | # ========================================
|
---|
| 43 | set(
|
---|
| 44 | FILES_TO_MOC
|
---|
[42] | 45 | DbtPlySickLMSManager.h
|
---|
[43] | 46 | DbtPlySickLDMRSManager.h
|
---|
[16] | 47 | ${PLUGIN_H}
|
---|
| 48 | )
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | set(
|
---|
| 52 | UI_FILES
|
---|
| 53 |
|
---|
| 54 | )
|
---|
| 55 |
|
---|
| 56 | # ========================================
|
---|
| 57 | # Call MOC
|
---|
| 58 | # ========================================
|
---|
[31] | 59 | qt4_wrap_cpp(
|
---|
[16] | 60 | PROJECT_MOC_SRCS
|
---|
| 61 | ${FILES_TO_MOC}
|
---|
| 62 | )
|
---|
| 63 |
|
---|
[31] | 64 | qt4_wrap_ui(
|
---|
[16] | 65 | PROJECT_UI_SRCS
|
---|
| 66 | ${UI_FILES}
|
---|
| 67 | )
|
---|
| 68 |
|
---|
| 69 | # ========================================
|
---|
| 70 | # Build a library
|
---|
| 71 | # ========================================
|
---|
| 72 | pacpus_add_library(
|
---|
| 73 | ${PROJECT_NAME} SHARED
|
---|
| 74 | ${PROJECT_SRCS}
|
---|
| 75 | ${PROJECT_MOC_SRCS}
|
---|
| 76 | ${PROJECT_UI_SRCS}
|
---|
| 77 | )
|
---|
| 78 |
|
---|
| 79 | set(LIBS
|
---|
| 80 | optimized FileLib debug FileLib_d
|
---|
| 81 | optimized PacpusLib debug PacpusLib_d
|
---|
| 82 | optimized PacpusTools debug PacpusTools_d
|
---|
| 83 | )
|
---|
| 84 | if (WIN32)
|
---|
| 85 | list(APPEND LIBS
|
---|
| 86 | optimized ROAD_TIME debug ROAD_TIME_d
|
---|
| 87 | )
|
---|
| 88 | endif()
|
---|
| 89 |
|
---|
| 90 | # ========================================
|
---|
| 91 | # Libraries
|
---|
| 92 | # ========================================
|
---|
| 93 | # All the platform
|
---|
| 94 | target_link_libraries(
|
---|
| 95 | ${PROJECT_NAME}
|
---|
| 96 | ${PACPUS_LIBRARIES}
|
---|
| 97 | ${QT_LIBRARIES}
|
---|
| 98 | ${PACPUS_DEPENDENCIES_LIB}
|
---|
| 99 | ${LIBS}
|
---|
| 100 | )
|
---|
| 101 |
|
---|
| 102 | pacpus_folder(${PROJECT_NAME} "components")
|
---|
| 103 |
|
---|
| 104 | # ========================================
|
---|
| 105 | # Install
|
---|
| 106 | # ========================================
|
---|
[27] | 107 | pacpus_install(${PROJECT_NAME}) |
---|