]> sigrok.org Git - pulseview.git/blobdiff - CMakeLists.txt
Used cotire to enhance build performance
[pulseview.git] / CMakeLists.txt
index ad226931dafdd978760b7fc0978e6ffd3ea27aae..dacb972306eb90bc993bc7b318f1abe025b270e4 100644 (file)
 ##
 
 cmake_minimum_required(VERSION 2.6)
+
 include(FindPkgConfig)
 include(GNUInstallDirs)
 
+set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
+include(cotire)
+
 project(pulseview)
 
 #===============================================================================
@@ -137,6 +141,7 @@ set(pulseview_SOURCES
        pv/view/viewport.cpp
 )
 
+# This list includes only QObject derrived class headers
 set(pulseview_HEADERS
        pv/mainwindow.h
        pv/sigsession.h
@@ -147,6 +152,7 @@ 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
@@ -234,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.