From c2753ec67928e39dd56e417861d5815882cd00cc 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 Also includes to provide std::find(). Evidently something in Windows implicitly provides find(), but it was broken on Linux. --- CMakeLists.txt | 9 +++++++++ MiniRez/MiniRez.cpp | 1 + 2 files changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13565d0..cc95a8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -387,5 +387,14 @@ target_include_directories(MergeGPF PRIVATE ) target_link_libraries(MergeGPF PortabilityLayer) +add_executable(MiniRez MiniRez/MiniRez.cpp WindowsUnicodeToolShim/UnixUnicodeToolShim.cpp) +target_include_directories(MiniRez PRIVATE + Common + GpCommon + PortabilityLayer + WindowsUnicodeToolShim + ) +target_link_libraries(MiniRez PortabilityLayer) + install (TARGETS ${EXECNAME}) diff --git a/MiniRez/MiniRez.cpp b/MiniRez/MiniRez.cpp index 6b03b48..644a5f0 100644 --- a/MiniRez/MiniRez.cpp +++ b/MiniRez/MiniRez.cpp @@ -1,3 +1,4 @@ +#include #include #include #include