From 5543c7d05345ea49795d67e4f81d61fa8ad05f3b Mon Sep 17 00:00:00 2001 From: Diomendius <42310725+Diomendius@users.noreply.github.com> Date: Tue, 11 Jun 2024 01:46:18 +1200 Subject: [PATCH] Add hqx2gp to CMake, port to *nix --- CMakeLists.txt | 10 ++++++++++ hqx2gp/hqx2gp.cpp | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ec55df..0b25e06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,5 +321,15 @@ target_include_directories(hqx2bin PRIVATE ) target_link_libraries(hqx2bin PortabilityLayer) +add_executable(hqx2gp hqx2gp/hqx2gp.cpp AerofoilPortable/GpAllocator_C.cpp) +target_include_directories(hqx2gp PRIVATE + Common + GpCommon + PortabilityLayer + AerofoilPortable + UnixCompat + ) +target_link_libraries(hqx2gp PortabilityLayer) + install (TARGETS ${EXECNAME}) diff --git a/hqx2gp/hqx2gp.cpp b/hqx2gp/hqx2gp.cpp index 7493d6b..6aba085 100644 --- a/hqx2gp/hqx2gp.cpp +++ b/hqx2gp/hqx2gp.cpp @@ -31,7 +31,12 @@ SOFTWARE. #include "MacBinary2.h" #include "MacFileMem.h" #include "ZipFile.h" + +#ifdef _WIN32 #include "WindowsUnicodeToolShim.h" +#else +#include "UnixCompat.h" +#endif #include