X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=3b41bff7980c1d1dcd7ba28870d846e42a556d1e;hp=cea8b744f7a2e67e132983da357db9366a715f46;hb=38f5609e63867d7a50c71bbe7f91f7889e95ff85;hpb=fb746bcc3d2b317e7ced838ff0f90cdf3dfe7aed diff --git a/CMakeLists.txt b/CMakeLists.txt index cea8b744..3b41bff7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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,15 @@ 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) + +if(ENABLE_TESTS) find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) +else() +find_package(Boost 1.46) +endif() #=============================================================================== #= Config Header