Changeset 99 in pacpussensors for trunk/StdDbtPlayerComponents
- Timestamp:
- Oct 15, 2015, 2:47:01 PM (9 years ago)
- Location:
- trunk/StdDbtPlayerComponents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StdDbtPlayerComponents/CMakeLists.txt
r94 r99 1 #########################quick start############################################ 2 #cmake ../ -G "CodeBlocks - Unix Makefiles" 3 #make 4 #make install 5 #make clean 6 ################################################################################ 1 7 project(StdDbtPlayerComponents) 2 3 ################################################################################ 8 set(${PROJECT_NAME}_VERSION_MAJOR 0) 9 set(${PROJECT_NAME}_VERSION_MINOR 1) 4 10 add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS ) 5 11 add_definitions( -DDBTPLYSICK_EXPORTS) 6 12 add_definitions( -DDBTPLYSICK_EXPORTS) 7 # ======================================== 8 # Include directories 9 # ======================================== 10 include_directories( 11 ${PROJECT_BINARY_DIR} 12 ${QT_INCLUDE_DIR} 13 ################################################################################ 14 create_export(EXPORT_HDR ${PROJECT_NAME}) 15 pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME}) 16 add_definitions (${QT_DEFINITIONS}) 17 18 find_package(Qt5Network REQUIRED) 19 ################################################################################ 20 # DIRECTORIES 21 include_directories( 22 ${PROJECT_BINARY_DIR} 23 ${QT_INCLUDE_DIR} 24 ${PACPUS_INCLUDE_DIR} 25 ${PACPUS_INCLUDE_DIR}/Pacpus/ 13 26 ) 14 27 … … 16 29 # Link directories 17 30 # ======================================== 18 link_directories( ${PACPUS_LIB_DIR} 19 ) 20 21 pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} ) 22 23 set(HDRS 24 StdDbtPlayerComponentsConfig.h 25 DbtPlySickLMSManager.h 26 DbtPlySickLDMRSManager.h 31 link_directories( 32 ${PACPUS_LIB_DIR} 27 33 ) 28 34 29 35 30 # ======================================== 31 # List of sources 32 # ======================================== 33 set( 34 PROJECT_SRCS 36 ################################################################################ 37 # FILES 38 set(PROJECT_HDRS 39 ${EXPORT_HDR} 40 StdDbtPlayerComponentsConfig.h 41 DbtPlySickLMSManager.h 42 DbtPlySickLDMRSManager.h 43 ${PROJECT_NAME}.xml 44 ${PROJECT_NAME}_d.xml 45 ) 46 set(PROJECT_SRCS 47 ${PLUGIN_CPP} 35 48 DbtPlySickLMSManager.cpp 36 DbtPlySickLDMRSManager.cpp 37 ${HDRS} 38 ${PLUGIN_CPP} 49 DbtPlySickLDMRSManager.cpp 39 50 ) 40 51 41 # ======================================== 42 # Files to MOC 43 # ======================================== 44 set( 45 FILES_TO_MOC 52 set(FILES_TO_MOC 53 ${PLUGIN_HDR} 46 54 DbtPlySickLMSManager.h 47 DbtPlySickLDMRSManager.h 48 ${PLUGIN_H} 49 ) 50 51 52 set( 53 UI_FILES 54 55 DbtPlySickLDMRSManager.h 55 56 ) 56 57 57 # ======================================== 58 # Call MOC 59 # ======================================== 60 qt_wrap_cpp( 61 PROJECT_MOC_SRCS 58 set(UI_FILES 59 ) 60 61 ################################################################################ 62 # Qt: call moc, uic 63 qt_wrap_cpp(PROJECT_MOC_SRCS 62 64 ${FILES_TO_MOC} 63 65 ) 64 66 65 qt_wrap_ui( 66 PROJECT_UI_SRCS 67 qt_wrap_ui(PROJECT_UI_SRCS 67 68 ${UI_FILES} 68 69 ) 69 70 70 # ======================================== 71 # Build a library 72 # ======================================== 73 pacpus_add_library( 74 ${PROJECT_NAME} SHARED 71 ################################################################################ 72 # BUILD and LINK 73 pacpus_add_library(${PROJECT_NAME} SHARED 74 ${PROJECT_HDRS} 75 75 ${PROJECT_SRCS} 76 76 ${PROJECT_MOC_SRCS} … … 78 78 ) 79 79 80 81 # ======================================== 82 # Libraries 83 # ======================================== 80 84 set(LIBS 81 85 optimized FileLib debug FileLib_d … … 88 92 ) 89 93 endif() 94 # LINK 95 target_link_libraries(${PROJECT_NAME} 96 ${PACPUS_LIBRARIES} 97 ${PACPUS_DEPENDENCIES_LIB} 98 ${LIBS} 99 ${QT_LIBRARIES} 100 ) 101 qt5_use_modules(${PROJECT_NAME} Network) 102 ################################################################################ 103 # FOLDERS 104 pacpus_folder(${PROJECT_NAME} "components") 105 ################################################################################ 106 # INSTALL 107 pacpus_install(${PROJECT_NAME}) 90 108 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} 109 # install headers 110 install( 111 DIRECTORY 112 ${StdDbtPlayerComponents_SOURCE_DIR} 113 DESTINATION 114 ${PACPUS_INSTALL_DIR}/include 115 FILES_MATCHING PATTERN "*.h" 101 116 ) 102 103 pacpus_folder(${PROJECT_NAME} "components")104 105 # ========================================106 # Install107 # ========================================108 pacpus_install(${PROJECT_NAME}) -
trunk/StdDbtPlayerComponents/DbtPlySickLDMRSManager.h
r50 r99 5 5 // author: Cyril Fougeray 6 6 // Copyright Heudiasyc UMR UTC/CNRS 6599 7 // 7 // 8 8 // version: $Id: $ 9 9 // 10 // purpose: 10 // purpose: 11 11 // ********************************************************************* 12 12 … … 29 29 # endif 30 30 #else 31 // On other platforms, simply ignore this 32 # define DBTPLYSICK_API 31 // On other platforms, simply ignore this 32 # define DBTPLYSICK_API 33 33 #endif 34 34 35 35 namespace pacpus { 36 36 37 37 class ShMem; 38 38 … … 64 64 } // namespace pacpus 65 65 66 #endif 66 #endif -
trunk/StdDbtPlayerComponents/StdDbtPlayerComponentsConfig.h
r16 r99 1 #ifndef __STDDBTPLAYERCOMPONENTS_H__ 2 #define __STDDBTPLAYERCOMPONENTS_H__ 1 // Autogenerated file by PacpusUtilities.cmake 2 // DO NOT EDIT!!! ALL CHANGES WOULD BE REMOVED BY THE NEXT CALL OF CMAKE 3 3 4 // Export macro for CanGateway DLL for Windows only 4 #ifndef __STDDBTPLAYERCOMPONENTS_CONFIG_H__ 5 #define __STDDBTPLAYERCOMPONENTS_CONFIG_H__ 6 7 // Export macro for use DLL for Windows only 5 8 #ifdef WIN32 6 #ifdef STDDBTPLAYERCOMPONENTS_EXPORTS7 //make DLL8 #define STDDBTPLAYERCOMPONENTS_API __declspec(dllexport)9 #else10 //use DLL11 #define STDDBTPLAYERCOMPONENTS_API __declspec(dllimport)12 #endif9 #ifdef STDDBTPLAYERCOMPONENTS_EXPORTS 10 // make DLL 11 #define STDDBTPLAYERCOMPONENTS_API __declspec(dllexport) 12 #else 13 // use DLL 14 #define STDDBTPLAYERCOMPONENTS_API __declspec(dllimport) 15 #endif 13 16 #else 14 // On other platforms, simply ignore this 15 # define STDDBTPLAYERCOMPONENTS_API 17 // On other platforms, simply ignore this 18 #define STDDBTPLAYERCOMPONENTS_API 16 19 #endif 17 20 18 #endif 21 #endif // __STDDBTPLAYERCOMPONENTS_CONFIG_H__
Note:
See TracChangeset
for help on using the changeset viewer.