X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=test%2FCMakeLists.txt;h=82e80a8af5d6535b31e0d73b8bb3f3f18d406370;hp=ba1cce29c35099b0e05c552e1ce6342a7711d3db;hb=6d8b05622f1e422c7193656c9eac3ebae5b6b934;hpb=c0aa7d313610b13ba7f38b5f9f627ba71655fd9c diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ba1cce29..82e80a8a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -131,7 +131,11 @@ if(ENABLE_DECODE) add_definitions(-DENABLE_DECODE) endif() +# On MinGW we need to use static linking. +if(NOT WIN32) add_definitions(-DBOOST_TEST_DYN_LINK) +endif() + add_definitions(${QT_DEFINITIONS}) include_directories( @@ -146,6 +150,11 @@ set(PULSEVIEW_LINK_LIBS ${QT_LIBRARIES} ) +if(WIN32) + # Workaround for a MinGW linking issue. + list(APPEND PULSEVIEW_LINK_LIBS "-llzma -llcms2") +endif() + add_executable(pulseview-test ${pulseview_TEST_SOURCES} ${pulseview_TEST_HEADERS_MOC}