Rename cli to "chun"

This commit is contained in:
2026-01-19 22:10:33 +08:00
parent 0833a2229b
commit 1a66d45204
2 changed files with 8 additions and 8 deletions

View File

@@ -29,21 +29,21 @@ set(LIB_HEADERS
) )
if(CAMELLYA_BUILD_STATIC) if(CAMELLYA_BUILD_STATIC)
add_library(libcamellya STATIC ${LIB_SOURCES} ${LIB_HEADERS}) add_library(camellya STATIC ${LIB_SOURCES} ${LIB_HEADERS})
elseif() elseif()
add_library(libcamellya SHARED ${LIB_SOURCES} ${LIB_HEADERS}) add_library(camellya SHARED ${LIB_SOURCES} ${LIB_HEADERS})
endif() endif()
target_include_directories(libcamellya PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) target_include_directories(camellya PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
if(CAMELLYA_BUILD_CLI) if(CAMELLYA_BUILD_CLI)
add_executable(camellya add_executable(chun
cli/main.cpp cli/main.cpp
) )
target_link_libraries(camellya target_link_libraries(chun
PRIVATE PRIVATE
libcamellya camellya
) )
endif() endif()
@@ -72,7 +72,7 @@ if(CAMELLYA_BUILD_TESTS)
target_link_libraries(camellya_tests target_link_libraries(camellya_tests
PRIVATE PRIVATE
libcamellya camellya
Catch2::Catch2WithMain Catch2::Catch2WithMain
) )

View File

@@ -5,7 +5,7 @@
int main(int argc, char** argv) { int main(int argc, char** argv) {
if(argc < 2){ if(argc < 2){
std::cout << std::format("Usage: camellya <script> \n") << std::endl; std::cout << std::format("Usage: chun <script> \n") << std::endl;
return 0; return 0;
} }
std::chrono::high_resolution_clock::time_point start = std::chrono::high_resolution_clock::now(); std::chrono::high_resolution_clock::time_point start = std::chrono::high_resolution_clock::now();