project(Oscilloscope) ################################################################################ add_definitions( -DGRAPHDISPLAY_EXPORTS ) # ======================================== # Configure Qwt # ======================================== # Add FindQwt.cmake to the Find*.cmake list list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) FIND_PACKAGE(Qwt REQUIRED) IF (QWT_FOUND) include_directories(${QT_INCLUDE_DIR} ${QWT_INCLUDE_DIR}) ENDIF(QWT_FOUND) # ======================================== # Compiler definitions # ======================================== add_definitions( ${QT_DEFINITIONS} ) # ======================================== # Include directories # ======================================== include_directories( ${PROJECT_BINARY_DIR} ${QT_INCLUDE_DIR} ../DataViewerLib ) # ======================================== # Link directories # ======================================== link_directories( ${PACPUS_LIB_DIR} ) pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} ) # ======================================== # List of sources # ======================================== set( PROJECT_SRCS FixedTimeDivisionOscilloscope.cpp ${PLUGIN_CPP} ) # ======================================== # Files to MOC # ======================================== set( FILES_TO_MOC FixedTimeDivisionOscilloscope.h ${PLUGIN_H} ) set( UI_FILES ) # ======================================== # Call MOC # ======================================== qt_wrap_cpp( PROJECT_MOC_SRCS ${FILES_TO_MOC} ) qt_wrap_ui( PROJECT_UI_SRCS ${UI_FILES} ) # ======================================== # Build a library # ======================================== pacpus_add_library( ${PROJECT_NAME} SHARED ${PROJECT_SRCS} ${PROJECT_MOC_SRCS} ${PROJECT_UI_SRCS} ) # ======================================== # Libraries # ======================================== if(WIN32) set(LIBS QwtDataViewerLib # add your specific libraries to link here ) endif(WIN32) if(UNIX) set(LIBS QwtDataViewerLib # add your specific libraries to link here ) endif(UNIX) # All the platform target_link_libraries( ${PROJECT_NAME} ${PACPUS_LIBRARIES} ${QT_LIBRARIES} ${PACPUS_DEPENDENCIES_LIB} ${LIBS} ) pacpus_folder(${PROJECT_NAME} "components") # ======================================== # Install # ======================================== pacpus_install(${PROJECT_NAME})