do not compile tutorial examples by default

This commit is contained in:
gmega 2026-02-03 17:21:29 -03:00
parent 7513c2945b
commit 36b0242444
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -47,16 +47,18 @@ target_link_libraries(storageconsole PRIVATE easystorage)
target_link_libraries(storageconsole PRIVATE ${LIBSTORAGE_PATH})
# --- Example: uploader/downloader ---
add_executable(uploader
examples/uploader.c)
if (COMPILE_TUTORIAL_EXAMPLES)
add_executable(uploader
examples/uploader.c)
add_executable(downloader
examples/downloader.c)
add_executable(downloader
examples/downloader.c)
target_link_libraries(uploader PRIVATE easystorage)
target_link_libraries(downloader PRIVATE easystorage)
target_link_libraries(uploader PRIVATE ${LIBSTORAGE_PATH})
target_link_libraries(downloader PRIVATE ${LIBSTORAGE_PATH})
target_link_libraries(uploader PRIVATE easystorage)
target_link_libraries(downloader PRIVATE easystorage)
target_link_libraries(uploader PRIVATE ${LIBSTORAGE_PATH})
target_link_libraries(downloader PRIVATE ${LIBSTORAGE_PATH})
endif()
# --- Tests ---
enable_testing()