]> sigrok.org Git - pulseview.git/blobdiff - CMakeLists.txt
Added TimeMarker base class
[pulseview.git] / CMakeLists.txt
index cea8b744f7a2e67e132983da357db9366a715f46..4f8665f7d753f8a1618045460e12ed991ba806bf 100644 (file)
@@ -28,11 +28,11 @@ project(pulseview)
 #-------------------------------------------------------------------------------
 
 option(ENABLE_TESTS "Enable unit tests" FALSE)
-option(STATIC_PKGDEPS_LIBS "Statically link to sigrok libraries" FALSE)
+option(STATIC_PKGDEPS_LIBS "Statically link to (pkgconfig) libraries" FALSE)
 
 if(WIN32)
-       # On Windows/MinGW we need to statically link to libraries
-       # This option is user configurable, but enable it by default on win32
+       # On Windows/MinGW we need to statically link to libraries.
+       # This option is user configurable, but enable it by default on win32.
        set(STATIC_PKGDEPS_LIBS TRUE)
 endif()
 
@@ -49,10 +49,11 @@ pkg_check_modules(PKGDEPS REQUIRED
 # On Windows/MinGW we explicitly point cmake to the Boost directory.
 if(WIN32)
        set(BOOST_ROOT /usr/local)
-endif(WIN32)
+endif()
 
 find_package(Qt4 REQUIRED)
-find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED)
+
+find_package(Boost 1.46)
 
 #===============================================================================
 #= Config Header
@@ -91,6 +92,7 @@ set(pulseview_SOURCES
        pv/signal.cpp
        pv/view/header.cpp
        pv/view/ruler.cpp
+       pv/view/timemarker.cpp
        pv/view/view.cpp
        pv/view/viewport.cpp
 )
@@ -125,6 +127,7 @@ include(${QT_USE_FILE})
 #-------------------------------------------------------------------------------
 
 add_definitions(${QT_DEFINITIONS})
+add_definitions(-Werror -Wall)
 
 #===============================================================================
 #= Global Include Directories