Datasets:
Download ctxstream/CMakeLists.txt from Rickesh/rlm-oolong-reproduction: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/Rickesh/rlm-oolong-reproduction/resolve/main/ctxstream/CMakeLists.txt
- Command line
-
hf download hf://datasets/Rickesh/rlm-oolong-reproduction/ctxstream/CMakeLists.txt
-
curl -L -o CMakeLists.txt https://huggingface.co/datasets/Rickesh/rlm-oolong-reproduction/resolve/main/ctxstream/CMakeLists.txt
1.1 kB
| cmake_minimum_required(VERSION 3.16) | |
| project(ctxstream CXX) | |
| set(CMAKE_CXX_STANDARD 17) | |
| set(CMAKE_CXX_STANDARD_REQUIRED ON) | |
| if(NOT CMAKE_BUILD_TYPE) | |
| set(CMAKE_BUILD_TYPE Release) | |
| endif() | |
| add_compile_options(-Wall -Wextra -Wno-unused-parameter) | |
| find_package(Threads REQUIRED) | |
| # Zero third-party dependencies on purpose: HTTP and the JSON subset we need are | |
| # ~250 lines in backend.cpp. A client library would cost more to carry than to write. | |
| add_library(ctxstream_core | |
| src/manifest.cpp | |
| src/codegraph.cpp | |
| src/backend.cpp | |
| src/pipeline.cpp | |
| src/reduce.cpp) | |
| target_link_libraries(ctxstream_core PUBLIC Threads::Threads) | |
| # gcc < 9 needs this for std::filesystem | |
| if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1) | |
| target_link_libraries(ctxstream_core PUBLIC stdc++fs) | |
| endif() | |
| add_executable(ctxstream src/main.cpp) | |
| target_link_libraries(ctxstream PRIVATE ctxstream_core) | |
| enable_testing() | |
| add_executable(test_ctxstream tests/test_ctxstream.cpp) | |
| target_link_libraries(test_ctxstream PRIVATE ctxstream_core) | |
| add_test(NAME unit COMMAND test_ctxstream) | |