From cc494253e056ee838fd4da1765b427e8f0abebe8 Mon Sep 17 00:00:00 2001 From: Diomendius <42310725+Diomendius@users.noreply.github.com> Date: Sun, 16 Jun 2024 16:08:40 +1200 Subject: [PATCH] Add MiniRez to CMake, port to *nix --- CMakeLists.txt | 9 +++++++++ MiniRez/MiniRez.cpp | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00fda9a..020464a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -373,5 +373,14 @@ target_include_directories(MergeGPF PRIVATE ) target_link_libraries(MergeGPF PortabilityLayer) +add_executable(MiniRez MiniRez/MiniRez.cpp) +target_include_directories(MiniRez PRIVATE + Common + GpCommon + PortabilityLayer + UnixCompat + ) +target_link_libraries(MiniRez PortabilityLayer) + install (TARGETS ${EXECNAME}) diff --git a/MiniRez/MiniRez.cpp b/MiniRez/MiniRez.cpp index 6b03b48..53cc5ed 100644 --- a/MiniRez/MiniRez.cpp +++ b/MiniRez/MiniRez.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -9,7 +10,12 @@ #include "MacBinary2.h" #include "MacFileMem.h" + +#ifdef _WIN32 #include "WindowsUnicodeToolShim.h" +#else +#include "UnixCompat.h" +#endif // Very simplified resource compiler