Improve cmake inclusion of query_config.c when building apps
diff --git a/programs/test/CMakeLists.txt b/programs/test/CMakeLists.txt
index 8af02da..65ff249 100644
--- a/programs/test/CMakeLists.txt
+++ b/programs/test/CMakeLists.txt
@@ -30,7 +30,8 @@
 add_executable(zeroize zeroize.c)
 target_link_libraries(zeroize ${libs})
 
-add_executable(query_compile_time_config query_compile_time_config.c ../ssl/query_config.c)
+add_executable(query_compile_time_config query_compile_time_config.c)
+target_sources(query_compile_time_config PUBLIC ../ssl/query_config.c)
 target_link_libraries(query_compile_time_config ${libs})
 
 install(TARGETS selftest benchmark ssl_cert_test udp_proxy query_compile_time_config