#########################quick start############################################ #cmake ../ -G "CodeBlocks - Unix Makefiles" #make #make install #make clean ################################################################################ project(StdDbtPlayerComponents) set(${PROJECT_NAME}_VERSION_MAJOR 0) set(${PROJECT_NAME}_VERSION_MINOR 1) #add_definitions( -DSTDDBTPLAYERCOMPONENTS_EXPORTS ) #add_definitions( -DDBTPLYSICK_EXPORTS) #add_definitions( -DDBTPLYSICK_EXPORTS) add_definitions( -DPACPUSLIB_EXPORTS) ################################################################################ create_export(EXPORT_HDR ${PROJECT_NAME}) pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME}) add_definitions (${QT_DEFINITIONS}) find_package(Qt5Network REQUIRED) ################################################################################ # DIRECTORIES include_directories( ${PROJECT_BINARY_DIR} ${QT_INCLUDE_DIR} ${PACPUS_INCLUDE_DIR} ${PACPUS_INCLUDE_DIR}/Pacpus/ ) # ======================================== # Link directories # ======================================== link_directories( ${PACPUS_LIB_DIR} ) ################################################################################ # FILES set(PROJECT_HDRS ${EXPORT_HDR} StdDbtPlayerComponentsConfig.h DbtPlySickLMSManager.h DbtPlySickLDMRSManager.h DbtPlyAlascaManager.h DbtPlyImageManager.h DbtPlyCPTComponent.h DbtPlyGstManager.h DbtPlyGgaManager.h DbtPlyGpsConfig.h DbtPlyVtgManager.h DbtPlyImageManager.h ImageViewer.h ) set(PROJECT_SRCS ${PLUGIN_CPP} DbtPlySickLMSManager.cpp DbtPlySickLDMRSManager.cpp DbtPlyAlascaManager.cpp DbtPlyImageManager.cpp DbtPlyCPTComponent.cpp DbtPlySickLDMRSManager.cpp DbtPlyGstManager.cpp DbtPlyGgaManager.cpp DbtPlyVtgManager.cpp DbtPlyImageManager.cpp ImageViewer.cpp ) set(FILES_TO_MOC ${PLUGIN_HDR} DbtPlySickLMSManager.h DbtPlySickLDMRSManager.h DbtPlyAlascaManager.h DbtPlyImageManager.h DbtPlyCPTComponent.h DbtPlyGstManager.h DbtPlyGpsConfig.h DbtPlyGgaManager.h DbtPlyVtgManager.h DbtPlyImageManager.h ImageViewer.h ) set(UI_FILES ) ################################################################################ # Qt: call moc, uic qt_wrap_cpp(PROJECT_MOC_SRCS ${FILES_TO_MOC} ) qt_wrap_ui(PROJECT_UI_SRCS ${UI_FILES} ) ################################################################################ # BUILD and LINK pacpus_add_library(${PROJECT_NAME} SHARED ${PROJECT_HDRS} ${PROJECT_SRCS} ${PROJECT_MOC_SRCS} ${PROJECT_UI_SRCS} ) # ======================================== # Libraries # ======================================== set(LIBS optimized FileLib debug FileLib_d optimized PacpusLib debug PacpusLib_d optimized PacpusTools debug PacpusTools_d #optimized NMEA0183LIB debug NMEA0183LIB_d ) if (WIN32) list(APPEND LIBS optimized ROAD_TIME debug ROAD_TIME_d ) endif() # LINK target_link_libraries(${PROJECT_NAME} ${PACPUS_LIBRARIES} ${PACPUS_DEPENDENCIES_LIB} ${LIBS} ${QT_LIBRARIES} #optimized NMEA0183LIB debug NMEA0183LIB_d ) qt5_use_modules(${PROJECT_NAME} Network) ################################################################################ # FOLDERS pacpus_folder(${PROJECT_NAME} "components") ################################################################################ # INSTALL pacpus_install(${PROJECT_NAME}) # install headers install( DIRECTORY ${StdDbtPlayerComponents_SOURCE_DIR} DESTINATION ${PACPUS_INSTALL_DIR}/include FILES_MATCHING PATTERN "*.h" )