Commit Graph

18 Commits

Author SHA1 Message Date
Xavier Del Campo Romero 39ecbd690b
cmake: Do not mkdir cdroot for non-PS1 builds 2024-01-27 17:38:10 +01:00
Xavier Del Campo Romero 4da7a3e44d wip2 2022-12-08 17:00:23 +01:00
Xavier Del Campo Romero 9808581861 WIP 2022-11-01 16:26:16 +01:00
Xavier Del Campo Romero 635d950efd Implement net component 2022-09-20 17:34:21 +02:00
Xavier Del Campo Romero 42b976af1b Implement FindENET.cmake
This library will be later used for networking over UDP/IPv4 in future
commits.
2022-09-20 17:22:45 +02:00
Xavier Del Campo Romero e8dd951c6c Use find_package for SDL libraries
CMake already distributes FindSDL*.cmake files for SDL and SDL_mixer,
which support custom prefixes via environment variables, removing the
need for ad-hoc logic in Win9x builds.

Also, according to FindSDL.cmake, #include <SDL.h> is the preferred way
for portability reasons, instead of #include <SDL/SDL.h>, which is the
option that has been used so far.
2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 94d98176ea ps1.cmake: import PSXSDK using find_package 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 8ed1c6e8b3 Implement FindPSXSDK.cmake 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 4d40033323 Update FindSDL_gfx.cmake as of today's upstream
Ongoing PR:
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7475
2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 8b9822c013 Create cdroot directory on common CMakeLists.txt 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero ca510a11c4 Import SDL_gfx 2022-07-15 01:03:36 +02:00
Xavier Del Campo Romero 450cdc3fab Implement FindSDL_gfx.cmake
Surprisingly, as of today (July 2022) CMake ships with FindSDL*.cmake
files for several SDL libraries such as SDL_mixer or SDL_image, but not
for SDL_gfx, so one was created, based on FindSDL_mixer.cmake.

Reference:
8a3004d5c2/Modules/FindSDL_mixer.cmake
2022-07-15 01:03:36 +02:00
Xavier Del Campo Romero 1a67c196a5 host.cmake, win9x.cmake: fetch libfixmath if missing 2022-06-30 22:49:35 +02:00
Xavier Del Campo Romero 2a9290514f cmake/ps1.cmake: use add_library for libpsx.a 2022-06-19 03:51:36 +02:00
Xavier Del Campo Romero db5f21e3b4 win9x.cmake: remove unneeded dependencies 2022-06-08 00:36:26 +02:00
Xavier Del Campo Romero c607077c22 win9x.cmake: use target commands for SDL and SDL_mixer
Since libSDL.a and libSDL_mixer.a are compiled separately from this
project, some hacks had been used to get the build running. However,
this approach did not make proper use of target-level properties, which
are encouraged according to modern CMake standards over global-level
commands such as include_directories() or link_libraries().

OTOH, Win32 dependencies were being imported using link_libraries(), but
they in fact are SDL dependencies, so target_link_libraries() can be
used instead.
2022-06-08 00:36:26 +02:00
Xavier Del Campo Romero 6712c8ef22 CMakeLists.txt: move target-specific logic away 2022-06-07 23:32:32 +02:00
Xavier Del Campo Romero 7b8c0725f0 Split CMakeLists.txt into platform-specific *.cmake 2022-05-24 22:20:04 +02:00