Skip to content

Commit

Permalink
Merge pull request #68 from Wargus/CMakeFix
Browse files Browse the repository at this point in the history
Fix path of subprojects/nlohmann_json in CMakeLists.txt
  • Loading branch information
Jarod42 authored Mar 15, 2024
2 parents 3ab1c9c + 1f64392 commit b8f4d8b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,23 @@ set(scmconvert_HDRS

file(GLOB startool_SRCS
src/*.cpp
src/kaitai/*.cpp
src/dat/*.cpp
src/kaitai/*.cpp
src/libgrp/*.cpp
src/libgrp/Exceptions/*.cpp
src/libgrp/GRPFrame/*.cpp
src/libgrp/GRPImage/*.cpp
src/tileset/*.cpp
)

file(GLOB startool_HDRS
src/*.h
src/kaitai/*.h
src/dat/*.h
src/kaitai/*.h
src/libgrp/*.h
src/libgrp/Exceptions/*.h
src/libgrp/GRPFrame/*.h
src/libgrp/GRPImage/*.h
src/tileset/*.h
)

Expand Down Expand Up @@ -135,8 +143,8 @@ set(startool_LIBS ${scmconvert_LIBS} ${PNG_LIBRARIES} ${ZLIB_LIBRARIES} ${STORML

# Platform specific definitions and compilation settings

add_subdirectory("subprojects/nlohmann-json")
include_directories("subprojects/nlohmann-json/include")
add_subdirectory("subprojects/nlohmann_json")
include_directories("subprojects/nlohmann_json/include")
set(startool_LIBS ${startool_LIBS} ${NLOHMANN_JSON_TARGET_NAME})

if(WIN32 AND MSVC)
Expand Down
2 changes: 1 addition & 1 deletion src/libgrp/GRPImage/GRPImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool GRPImage::DetectUncompressed(std::vector<char> *inputImage)
imagePayload += tempWidth * tempHeight;
}

uniqueGRPImages.insert(std::make_pair<uint32_t,bool>((uint32_t)tempDataOffset,true));
uniqueGRPImages.insert(std::make_pair(tempDataOffset, true));

if(firstOffset == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion stargus.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Section "-${NAME}"

; -- XXX TODO: include Stratagus and dependencies some better way
File "stratagus.exe"
File "*.dll"
;File "*.dll"

ClearErrors

Expand Down

0 comments on commit b8f4d8b

Please sign in to comment.