Commit Graph

15 Commits

Author SHA1 Message Date
Xavier Del Campo Romero 84c834c000 Implement net component 2022-09-20 17:34:21 +02:00
Xavier Del Campo Romero f42f5f69c8 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 5829ef82c4 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 37ee2c11f3 ps1.cmake: import PSXSDK using find_package 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 127a21a34f Implement FindPSXSDK.cmake 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 8f3403dffa 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 79c0164c21 Create cdroot directory on common CMakeLists.txt 2022-07-23 04:23:05 +02:00
Xavier Del Campo Romero 2d22b88695 Import SDL_gfx 2022-07-15 01:03:36 +02:00
Xavier Del Campo Romero 360ea710e0 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 d55fb31e21 host.cmake, win9x.cmake: fetch libfixmath if missing 2022-06-30 22:49:35 +02:00
Xavier Del Campo Romero c831272f29 cmake/ps1.cmake: use add_library for libpsx.a 2022-06-19 03:51:36 +02:00
Xavier Del Campo Romero 0517c897c5 win9x.cmake: remove unneeded dependencies 2022-06-08 00:36:26 +02:00
Xavier Del Campo Romero 99bb23e194 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 787402efcf CMakeLists.txt: move target-specific logic away 2022-06-07 23:32:32 +02:00
Xavier Del Campo Romero 9073d82ea6 Split CMakeLists.txt into platform-specific *.cmake 2022-05-24 22:20:04 +02:00