project(QwtDataViewerLib) # 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) set(SOURCE_FILES Scope.cpp ScopeFixedStep.cpp ScopeVariableStep.cpp Scrollbar.cpp ) SET(FILES_TO_MOC ScopeFixedStep.h Scope.h ScopeVariableStep.h Scrollbar.h ) QT_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC}) add_library(${PROJECT_NAME} SHARED ${MOC_SOURCES} ${SOURCE_FILES} ) target_link_libraries( ${PROJECT_NAME} ${QWT_LIBRARIES} ) set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX "_d" )