X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=58c86c455f742b1a5918fd6a4187cccfb8bbf1bc;hp=94d32a41f1d53e6b892f81c6150f57b106bebba6;hb=921b90c0b3ae0cf44247da3d87bd7dc0612e9681;hpb=0fbda3c2dda9357776afa15e99c037eb0cc97214 diff --git a/CMakeLists.txt b/CMakeLists.txt index 94d32a41..58c86c45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,12 @@ if(WIN32) set(ENABLE_SIGNALS FALSE) endif() +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING + "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." + FORCE) +endif() + #=============================================================================== #= Dependencies #------------------------------------------------------------------------------- @@ -79,6 +85,13 @@ else() find_package(Boost 1.42 COMPONENTS system thread REQUIRED) endif() +#=============================================================================== +#= System Introspection +#------------------------------------------------------------------------------- + +include(memaccess) +memaccess_check_unaligned_le(HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS) + #=============================================================================== #= Config Header #------------------------------------------------------------------------------- @@ -114,6 +127,8 @@ set(pulseview_SOURCES pv/data/logicsnapshot.cpp pv/data/signaldata.cpp pv/data/snapshot.cpp + pv/device/device.cpp + pv/device/devinst.cpp pv/dialogs/about.cpp pv/dialogs/connect.cpp pv/dialogs/storeprogress.cpp @@ -146,6 +161,7 @@ set(pulseview_SOURCES pv/widgets/colourpopup.cpp pv/widgets/popup.cpp pv/widgets/popuptoolbutton.cpp + pv/widgets/sweeptimingwidget.cpp pv/widgets/wellarray.cpp ) @@ -154,6 +170,7 @@ set(pulseview_HEADERS pv/mainwindow.h pv/sigsession.h pv/storesession.h + pv/device/devinst.h pv/dialogs/about.h pv/dialogs/connect.h pv/dialogs/storeprogress.h @@ -181,6 +198,7 @@ set(pulseview_HEADERS pv/widgets/colourpopup.h pv/widgets/popup.h pv/widgets/popuptoolbutton.h + pv/widgets/sweeptimingwidget.h pv/widgets/wellarray.h ) @@ -202,11 +220,12 @@ if(ENABLE_DECODE) pv/data/decoderstack.cpp pv/data/decode/annotation.cpp pv/data/decode/decoder.cpp + pv/data/decode/row.cpp + pv/data/decode/rowdata.cpp pv/prop/binding/decoderoptions.cpp pv/view/decodetrace.cpp pv/widgets/decodergroupbox.cpp pv/widgets/decodermenu.cpp - pv/widgets/wellarray.cpp ) list(APPEND pulseview_HEADERS @@ -277,6 +296,10 @@ set(PULSEVIEW_LINK_LIBS if(STATIC_PKGDEPS_LIBS) link_directories(${PKGDEPS_STATIC_LIBRARY_DIRS}) list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_STATIC_LIBRARIES}) +if(WIN32) + # Workaround for a MinGW linking issue. + list(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") +endif() else() link_directories(${PKGDEPS_LIBRARY_DIRS}) list(APPEND PULSEVIEW_LINK_LIBS ${PKGDEPS_LIBRARIES})