Skip to content

Commit

Permalink
Use rapidjson instead of jansson
Browse files Browse the repository at this point in the history
  • Loading branch information
Crayon2000 committed Dec 20, 2024
1 parent 4a4ec4f commit eff8f70
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 146 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ cmake_minimum_required(VERSION 3.18)
project(MiisendU-Wii-U)

find_package(PkgConfig REQUIRED)
pkg_check_modules(JANSSON REQUIRED jansson)

include(FetchContent)
FetchContent_Declare(
inih
URL https://github.com/benhoyt/inih/archive/refs/tags/r58.tar.gz
)
FetchContent_Declare(
rapidjson
URL https://github.com/Tencent/rapidjson/archive/refs/heads/master.tar.gz
)
FetchContent_Populate(rapidjson)
FetchContent_MakeAvailable(inih)

add_executable(MiisendU-Wii-U)
Expand All @@ -35,16 +39,15 @@ target_sources(MiisendU-Wii-U PRIVATE
)

target_include_directories(MiisendU-Wii-U SYSTEM PRIVATE
${JANSSON_INCLUDE_DIRS}
${inih_SOURCE_DIR}
${rapidjson_SOURCE_DIR}/include
)

target_include_directories(MiisendU-Wii-U PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/source
)

target_link_libraries(MiisendU-Wii-U PRIVATE
${JANSSON_LIBRARIES}
)

wut_create_rpx(MiisendU-Wii-U)
Expand Down
Loading

0 comments on commit eff8f70

Please sign in to comment.