projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract only the subset of annotations that are in view.
[pulseview.git]
/
test
/
CMakeLists.txt
diff --git
a/test/CMakeLists.txt
b/test/CMakeLists.txt
index ba1cce29c35099b0e05c552e1ce6342a7711d3db..82e80a8af5d6535b31e0d73b8bb3f3f18d406370 100644
(file)
--- a/
test/CMakeLists.txt
+++ b/
test/CMakeLists.txt
@@
-131,7
+131,11
@@
if(ENABLE_DECODE)
add_definitions(-DENABLE_DECODE)
endif()
add_definitions(-DENABLE_DECODE)
endif()
+# On MinGW we need to use static linking.
+if(NOT WIN32)
add_definitions(-DBOOST_TEST_DYN_LINK)
add_definitions(-DBOOST_TEST_DYN_LINK)
+endif()
+
add_definitions(${QT_DEFINITIONS})
include_directories(
add_definitions(${QT_DEFINITIONS})
include_directories(
@@
-146,6
+150,11
@@
set(PULSEVIEW_LINK_LIBS
${QT_LIBRARIES}
)
${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}
add_executable(pulseview-test
${pulseview_TEST_SOURCES}
${pulseview_TEST_HEADERS_MOC}