Move certain targets so they build when tests are disabled
@@ -281,9 +281,6 @@ target_include_directories(picohttp-core
picoquic)
set_picoquic_compile_settings(picohttp-core)
-include(CTest)
-
-if(BUILD_TESTING AND picoquic_BUILD_TESTS)
add_executable(picoquicdemo
picoquicfirst/picoquicdemo.c
picoquicfirst/getopt.c)
@@ -302,6 +299,10 @@ if(BUILD_TESTING AND picoquic_BUILD_TESTS)
target_include_directories(picolog_t PRIVATE loglib)
set_picoquic_compile_settings(picolog_t)
+include(CTest)
+
+if(BUILD_TESTING AND picoquic_BUILD_TESTS)
+
add_library(picoquic-test STATIC ${PICOQUIC_TEST_LIBRARY_FILES})
target_link_libraries(picoquic-test PUBLIC picoquic-core picoquic-log)
target_include_directories(picoquic-test
