diff --git a/.gitignore b/.gitignore index c7bc0748..29de42f4 100644 --- a/.gitignore +++ b/.gitignore @@ -52,4 +52,5 @@ bld/ *.suo *.user *.userosscache -*.sln.docstates \ No newline at end of file +*.sln.docstates +TestResults/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index dc2f5f6e..63b9272a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,7 +113,7 @@ target_include_directories(mdf PRIVATE ${ZLIB_INCLUDE_DIRS}) target_include_directories(mdf PRIVATE ${EXPAT_INCLUDE_DIRS}) target_compile_definitions(mdf PRIVATE XML_STATIC) - +target_link_libraries(mdf ${ZLIB_LIBRARIES} ${EXPAT_LIBRARIES}) set(MDF_PUBLIC_HEADERS include/mdf/cryptoutil.h include/mdf/etag.h diff --git a/test/TestMDFCMake/CMakeLists.txt b/test/TestMDFCMake/CMakeLists.txt index d55f1774..a318dd24 100644 --- a/test/TestMDFCMake/CMakeLists.txt +++ b/test/TestMDFCMake/CMakeLists.txt @@ -10,4 +10,5 @@ find_package(MdfLib REQUIRED) add_executable(TestMDFCMake ../../docs/mdfreaderexample.cpp) target_link_libraries(TestMDFCMake Upstream::mdf) + target_include_directories(TestMDFCMake PRIVATE ${MdfLibTargets_INCLUDE_DIR})