Commit Graph

35 Commits

Author SHA1 Message Date
Diomendius
d655ab81fe Add Tools CMake build target
All the individual executables are marked EXCLUDE_FROM_ALL, but the
added Tools custom target is marked ALL. The only visible effect of this
is that ConvertColorCursors does not get built by default, since all the
other tools are dependencies for the Resources or Tools targets, which
are both built by default. Otherwise, the benefit is simply to keep the
dependency tree clean. Only three targets are built by default:
Aerofoil, its resources and the conversion tools. Everything else is
built to satisfy dependencies.
2024-07-31 20:23:34 +12:00
Diomendius
d2823a93a1 Add Executable build target
This is meant as an alias to the name of the main executable, for
consistency with the Executable install component.
2024-07-31 20:23:34 +12:00
Diomendius
c764f8cb42 Avoid Clang c++11-narrowing error
Downgrades c++11-narrowing to a warning when compiling with Clang. A
better solution would be to fix the error, but this at least brings
Clang in line with the more permissive GCC, which treats this as a
warning by default.
2024-07-31 20:23:34 +12:00
Diomendius
1505dda2b9 Enable CMake Release build type and LTO by default 2024-07-31 20:23:34 +12:00
Diomendius
b8f8180638 Add add_data_file() to CMakeLists.txt
This automatically cleans up artifacts specified as BYPRODUCTS after
running the commands.
2024-07-31 20:23:34 +12:00
Diomendius
7d97d4ac14 Add houses to CMake 2024-07-31 20:23:34 +12:00
Diomendius
e3a188b2f0 Add icons to CMake (commented-out)
These are only used on Windows and the converted files have been
committed to the repo, but this might be useful to someone.
2024-07-31 20:23:34 +12:00
Diomendius
e8d20851bf Add Fonts.gpf to CMake 2024-07-31 20:23:34 +12:00
Diomendius
1ea8793456 Add ApplicationResources.gpf to CMake 2024-07-31 20:23:34 +12:00
Diomendius
4e34fccba1 Add ConvertColorCursors to CMake, port to *nix
Also swaps \ for / in paths. This should still work fine on Windows.
2024-07-31 20:23:34 +12:00
Diomendius
e09480898b Add GenerateFonts to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
388a166203 Add GpFontHandler_FreeType2 to CMake
Also add stddef.h include to GpRenderedGlyphMetrics.h to make size_t
visible. Does MSVC provide size_t by default, or via stdint.h? This
prevents compilation and I can't see how this would have compiled on
Windows otherwise.
2024-07-31 20:23:34 +12:00
Diomendius
2c7947202a Add unpacktool to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
9d6285490d Add HouseTool to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
cc494253e0 Add MiniRez to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
2d588b983b Add MergeGPF to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
1d078e0053 Add FTagData to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
dbfc72c491 Add MakeTimestamp to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
a7852b8c30 Add gpr2gpa to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
5543c7d053 Add hqx2gp to CMake, port to *nix 2024-07-31 20:23:34 +12:00
Diomendius
3ae422eae4 Add hqx2bin to CMake 2024-07-31 20:23:34 +12:00
Diomendius
0c5dc5c6a4 Add bin2gp to CMake 2024-07-31 20:23:34 +12:00
Diomendius
91c18b1950 Add flattenmov to CMake 2024-07-31 20:23:34 +12:00
Diomendius
c8baaa2552 Refactor CMakeLists.txt
The BUILD_INTERFACE generator expression isn't actually useful as we
don't use export(). CMAKE_CURRENT_SOURCE_DIR is also unnecessary as
CMake treats relative paths as relative to the current source directory
(or the current binary directory for outputs).
2024-07-31 20:23:34 +12:00
elasota
e33c01cc40 Change line endings to UNIX 2022-03-17 02:00:06 -04:00
Ryan Schmidt
e78b01a5f3 Improve CMake macOS build
Now actually builds on macOS.

Closes #9
2022-03-17 00:39:55 -05:00
elasota
3d5265258e Disable asserts 2021-05-16 12:08:23 -04:00
elasota
71115b2366 Fix AerofoilX compile failure 2021-05-14 19:19:03 -04:00
Madthijs
6fd1edd2c8 Merge branch 'master' into mac
# Conflicts:
#	GpApp/Main.cpp
2021-05-11 14:28:46 +02:00
elasota
24169507bd Add beep sound to platforms with no beep 2021-05-09 23:45:27 -04:00
Madthijs
c5a1303b71 Merge branch 'master' into mac
# Conflicts:
#	AerofoilX/GpMain_SDL_X.cpp
2021-04-28 19:17:55 +02:00
elasota
2cd4e4f178 UTF refactor to eliminate duplicated code outside of PL 2021-04-27 09:54:01 -04:00
Madthijs
e6df94dac0 First compile, Logger works 2021-04-11 14:07:16 +02:00
elasota
b90d0c303c Fix AerofoilX 2021-04-07 11:42:57 -04:00
elasota
7060676b73 Cygwin port 2021-03-18 17:08:11 -04:00