diff --git a/CMakeLists.txt b/CMakeLists.txt index 2236dd1..0414ad0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,9 @@ set(msvc-rt-mt-dll $) set(backport-msvc-runtime $) -add_library(yaml-cpp ${yaml-cpp-type}) +add_library(yaml-cpp ${yaml-cpp-type} + $<$:${yaml-cpp-contrib-sources}> + ${yaml-cpp-sources}) add_library(yaml::yaml ALIAS yaml-cpp) set_property(TARGET yaml-cpp diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3301584..a577c48 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,7 +20,9 @@ endif() file(GLOB test-new-api-sources ${test-new-api-pattern}) file(GLOB test-sources ${test-source-pattern}) -add_executable(yaml-cpp-tests) +add_executable(yaml-cpp-tests + ${test-new-api-sources} + ${test-sources}) target_sources(yaml-cpp-tests PRIVATE ${test-new-api-sources}