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