33 lines
915 B
CMake
33 lines
915 B
CMake
cmake_minimum_required(VERSION 4.0)
|
|
project(ShardsSandbox)
|
|
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
add_subdirectory(../third_party/spdlog deps/spdlog)
|
|
add_subdirectory(third_party/tree-sitter/lib deps/tree-sitter)
|
|
add_subdirectory(third_party/tree-sitter-cpp deps/tree-sitter-cpp)
|
|
|
|
set(SQLITE_SRC third_party/sqlite)
|
|
add_library(sqlite3
|
|
${SQLITE_SRC}/sqlite3.c
|
|
)
|
|
target_include_directories(sqlite3 PUBLIC ${SQLITE_SRC})
|
|
|
|
add_library(CLI11 INTERFACE)
|
|
target_include_directories(CLI11 INTERFACE third_party/CLI11)
|
|
|
|
add_executable(gh_tool
|
|
tool.cpp
|
|
file_processor.cpp
|
|
database.cpp
|
|
parser.cpp
|
|
cmd_scan.cpp
|
|
cmd_dump.cpp
|
|
cmd_verify.cpp
|
|
cmd_hooks.cpp
|
|
)
|
|
target_link_libraries(gh_tool PRIVATE spdlog::spdlog tree-sitter tree-sitter-cpp sqlite3 CLI11)
|
|
target_compile_features(gh_tool PRIVATE cxx_std_23)
|
|
|
|
add_executable(generate_dbg_sec generate_dbg_sec.cpp)
|
|
target_compile_features(generate_dbg_sec PRIVATE cxx_std_23)
|