mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-14 18:29:30 -04:00
refactor: Finalize agent template
This commit is contained in:
27
bench/CMakeLists.txt
Normal file
27
bench/CMakeLists.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
add_executable(QodeAssistBench
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(QodeAssistBench PRIVATE
|
||||
Qt::Core
|
||||
Session
|
||||
Agents
|
||||
Providers
|
||||
ProvidersConfig
|
||||
LLMQore
|
||||
)
|
||||
|
||||
set_target_properties(QodeAssistBench PROPERTIES
|
||||
OUTPUT_NAME bench
|
||||
FOLDER "qtc_runnable"
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
get_target_property(_qtcCoreLoc QtCreator::Core LOCATION)
|
||||
get_filename_component(_qtcCoreDir "${_qtcCoreLoc}" DIRECTORY)
|
||||
get_filename_component(QTC_FRAMEWORKS_DIR "${_qtcCoreDir}/../../Frameworks" ABSOLUTE)
|
||||
if(EXISTS "${QTC_FRAMEWORKS_DIR}")
|
||||
configure_file(run-bench.sh.in "${CMAKE_CURRENT_BINARY_DIR}/run-bench.sh" @ONLY)
|
||||
execute_process(COMMAND chmod +x "${CMAKE_CURRENT_BINARY_DIR}/run-bench.sh")
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user