mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-30 00:12:51 -05:00
Removed store mode
This commit is contained in:
@@ -2,42 +2,12 @@ cmake_minimum_required(VERSION 3.24)
|
||||
|
||||
project(smoke-api-tools LANGUAGES CXX)
|
||||
|
||||
### Install parser library
|
||||
### C++ preprocessor library
|
||||
|
||||
CPMAddPackage(
|
||||
NAME cpp-tree-sitter
|
||||
GIT_REPOSITORY https://github.com/nsumner/cpp-tree-sitter.git
|
||||
# The latest commit includes a fix for MSVC, which is not present in the latest release
|
||||
GIT_TAG 9cd7f3c9de9fc6d19bc982c6772fcd7a39e5797a
|
||||
)
|
||||
CPMAddPackage("gh:danmar/simplecpp#1.5.2")
|
||||
target_include_directories(simplecpp_obj INTERFACE ${simplecpp_SOURCE_DIR})
|
||||
|
||||
# Downloads a tree-sitter grammar from github
|
||||
# and makes it available as a cmake library target.
|
||||
add_grammar_from_repo(tree-sitter-cpp # Library name
|
||||
https://github.com/tree-sitter/tree-sitter-cpp.git # Repository URL
|
||||
0.23.4 # Version tag
|
||||
)
|
||||
|
||||
### Install JSON library
|
||||
|
||||
#CPMAddPackage(
|
||||
# NAME nlohmann_json
|
||||
# GIT_REPOSITORY https://github.com/nlohmann/json.git
|
||||
# GIT_TAG v3.12.0
|
||||
#)
|
||||
|
||||
### Install HTTP client library
|
||||
|
||||
set(CURL_USE_LIBPSL OFF)
|
||||
set(CPR_USE_SYSTEM_LIB_PSL ON)
|
||||
set(ENABLE_CURL_MANUAL OFF)
|
||||
set(BUILD_LIBCURL_DOCS OFF)
|
||||
set(BUILD_EXAMPLES OFF)
|
||||
CPMAddPackage(
|
||||
NAME cpr
|
||||
GIT_REPOSITORY https://github.com/libcpr/cpr.git
|
||||
GIT_TAG 1.12.0
|
||||
)
|
||||
### Thread pool library
|
||||
|
||||
CPMAddPackage(
|
||||
NAME BS_thread_pool
|
||||
@@ -64,7 +34,5 @@ add_executable(steamworks_parser steamworks_parser.cpp)
|
||||
target_link_libraries(steamworks_parser PRIVATE
|
||||
KoalaBox
|
||||
BS_thread_pool
|
||||
# nlohmann_json # JSON parser
|
||||
# tree-sitter-cpp # C++ grammar
|
||||
# cpp-tree-sitter # C++ bindings for tree-sitter
|
||||
simplecpp_obj
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user