summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 93ccb9a..d3d683a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,5 +1,10 @@
include_directories(${LIBRABBITMQ_INCLUDE_DIRS})
+# Needed because no version of MSVC has inttypes.h
+if (MSVC)
+ include_directories(${CMAKE_SOURCE_DIR}/librabbitmq/win32/msinttypes)
+endif()
+
add_executable(test_parse_url test_parse_url.c)
target_link_libraries(test_parse_url rabbitmq)
add_test(parse_url test_parse_url)