diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-05-02 20:43:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 20:43:25 -0400 |
| commit | 031782dd74d03da31879178664eb9dcbec50584d (patch) | |
| tree | f2a44cc7e9ae4c25aceea8507230d0dcff0a940f | |
| parent | b3314eb7916736d597335860b2ccbfc35e0be7ed (diff) | |
nlohmann from package managers (#16) (#22)
Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
| -rw-r--r-- | OTRExporter/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OTRExporter/CMakeLists.txt b/OTRExporter/CMakeLists.txt index f7b89fd..39e79d8 100644 --- a/OTRExporter/CMakeLists.txt +++ b/OTRExporter/CMakeLists.txt @@ -170,12 +170,14 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/ZAPDUtils
${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/StormLib/src
${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/spdlog/include
- ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/nlohmann-json/include
${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/src/resource
${CMAKE_CURRENT_SOURCE_DIR}/../../mm/2s2h
.
)
+find_package(nlohmann_json REQUIRED)
+target_link_libraries(${PROJECT_NAME} PUBLIC nlohmann_json::nlohmann_json)
+
if(MSVC)
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
target_compile_options(${PROJECT_NAME} PRIVATE
|
