X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=dacb972306eb90bc993bc7b318f1abe025b270e4;hp=6552df173e9b5481f0cafc3b6e9d7a10642543fd;hb=0cf9fb2478628f5b4c5773edd1d6ad1a895ccaec;hpb=2a2512b21581ea346fea7d96bd3deeb37f1cfed4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 6552df17..dacb9723 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,13 @@ ## cmake_minimum_required(VERSION 2.6) + include(FindPkgConfig) include(GNUInstallDirs) +set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") +include(cotire) + project(pulseview) #=============================================================================== @@ -62,6 +66,7 @@ endif() find_package(PkgConfig) pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS}) +FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 qmake-mac) find_package(Qt4 REQUIRED) # Find the platform's thread library (needed for boost-thread). @@ -126,14 +131,17 @@ set(pulseview_SOURCES pv/view/cursor.cpp pv/view/cursorpair.cpp pv/view/header.cpp + pv/view/marginwidget.cpp pv/view/logicsignal.cpp pv/view/ruler.cpp + pv/view/selectableitem.cpp pv/view/signal.cpp pv/view/timemarker.cpp pv/view/view.cpp pv/view/viewport.cpp ) +# This list includes only QObject derrived class headers set(pulseview_HEADERS pv/mainwindow.h pv/sigsession.h @@ -144,6 +152,8 @@ set(pulseview_HEADERS pv/toolbars/samplingbar.h pv/view/cursor.h pv/view/header.h + pv/view/logicsignal.h + pv/view/marginwidget.h pv/view/ruler.h pv/view/selectableitem.h pv/view/signal.h @@ -230,6 +240,7 @@ add_executable(${PROJECT_NAME} ) target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) +cotire(${PROJECT_NAME}) if(WIN32) # Pass -mwindows so that no "DOS box" will open when PulseView is started.