Changeset 185 in pacpusframework for trunk/examples/ProducerConsumerExample
- Timestamp:
- Oct 23, 2013, 10:32:21 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/ProducerConsumerExample/CMakeLists.txt
r181 r185 1 1 project(ProducerConsumerExample) 2 2 3 # ========================================4 # Basic Definitions5 # ========================================6 3 set(${PROJECT_NAME}_VERSION_MAJOR 0) 7 4 set(${PROJECT_NAME}_VERSION_MINOR 1) 8 5 6 ################################################################################ 9 7 create_export(EXPORT_HDR ${PROJECT_NAME}) 10 pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})8 pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME}) 11 9 12 # ======================================== 13 # Compiler definitions 14 # ======================================== 15 add_definitions(${QT_DEFINITIONS}) 16 17 # ======================================== 18 # Include directories 19 # ======================================== 10 ################################################################################ 11 # INCLUDES 20 12 include_directories( 21 13 ${PACPUSCITYVIP_INCLUDE_DIR} … … 24 16 ) 25 17 26 # ========================================18 ################################################################################ 27 19 # Link directories 28 # ========================================29 20 set(SRC_BINARY_DIR "${PROJECT_BINARY_DIR}/../../src") 30 21 get_filename_component(SRC_BINARY_DIR "${SRC_BINARY_DIR}" ABSOLUTE) … … 36 27 ) 37 28 38 # ======================================== 39 # List of sources 40 # ======================================== 29 ################################################################################ 30 # FILES 41 31 set(PROJECT_HDRS 32 ${EXPORT_HDR} 42 33 ProducerExample.h 43 34 ConsumerExample.h 44 ${PROJECT_NAME}.xml45 ${EXPORT_HDR}35 XML/${PROJECT_NAME}.xml 36 XML/${PROJECT_NAME}_d.xml 46 37 ) 47 38 set(PROJECT_SRCS … … 51 42 ) 52 43 53 # ========================================54 # Files to MOC55 # ========================================56 44 set(FILES_TO_MOC 57 ${PLUGIN_H }45 ${PLUGIN_HDR} 58 46 ProducerExample.h 59 47 ConsumerExample.h … … 63 51 ) 64 52 65 # ======================================== 66 # Call MOC 67 # ======================================== 68 qt_wrap_cpp( 69 PROJECT_MOC_SRCS 53 ################################################################################ 54 # Qt: call moc, uic 55 qt_wrap_cpp(PROJECT_MOC_SRCS 70 56 ${FILES_TO_MOC} 71 57 ) 72 58 73 qt_wrap_ui( 74 PROJECT_UI_SRCS 59 qt_wrap_ui(PROJECT_UI_SRCS 75 60 ${UI_FILES} 76 61 ) 77 62 78 # ======================================== 79 # Build a library 80 # ======================================== 81 pacpus_add_library( 82 ${PROJECT_NAME} SHARED 63 ################################################################################ 64 # BUILD and LINK 65 pacpus_add_library(${PROJECT_NAME} SHARED 83 66 ${PROJECT_HDRS} 84 67 ${PROJECT_SRCS} … … 86 69 ${PROJECT_UI_SRCS} 87 70 ) 71 88 72 list(APPEND PACPUS_LIBRARIES 89 73 optimized PacpusLib debug PacpusLib_d 90 74 ) 91 if(WIN32) 92 list(APPEND PACPUS_LIBRARIES 93 optimized road_time debug road_time_d 94 ) 95 endif() 96 #message("\${PACPUS_LIBRARIES} = ${PACPUS_LIBRARIES}") 97 #message("\${PACPUS_DEPENDENCIES_LIB} = ${PACPUS_DEPENDENCIES_LIB}") 98 99 # ======================================== 100 # Libraries 101 # ======================================== 102 # All the platform 103 target_link_libraries(${PROJECT_NAME} 75 message(STATUS "\${PACPUS_LIBRARIES} = ${PACPUS_LIBRARIES}") 76 message(STATUS "\${PACPUS_DEPENDENCIES_LIB} = ${PACPUS_DEPENDENCIES_LIB}") 77 # LIBS 78 set(LIBS 104 79 ${PACPUS_LIBRARIES} 105 80 ${PACPUS_DEPENDENCIES_LIB} 81 #${OpenCV_LIBRARIES} 106 82 ${QT_LIBRARIES} 107 #${OpenCV_LIBRARIES}108 83 ) 109 84 110 # ======================================== 111 # Install 112 # ======================================== 85 # LINK 86 target_link_libraries(${PROJECT_NAME} ${LIBS}) 87 88 ################################################################################ 89 # FOLDERS 90 pacpus_folder(${PROJECT_NAME} "examples") 91 92 ################################################################################ 93 # INSTALL 113 94 pacpus_install(${PROJECT_NAME}) 114 95 115 96 # Installation of the headers 116 97 #install(DIRECTORY ${PACPUSCITYVIP_INCLUDE_DIR} DESTINATION "${PACPUS_ROOT}") 117 118 # ========================================119 # Folder120 # ========================================121 pacpus_folder(${PROJECT_NAME} "examples")
Note:
See TracChangeset
for help on using the changeset viewer.