Xavier Del Campo Romero
5829ef82c4
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.
15 lines
385 B
CMake
15 lines
385 B
CMake
set(src "src/mouse.c")
|
|
set(inc "inc")
|
|
|
|
if(PS1_BUILD)
|
|
set(src ${src} "ps1/src/mouse.c")
|
|
set(privdeps ${privdeps} PSXSDK::PSXSDK)
|
|
elseif(SDL1_2_BUILD)
|
|
set(src ${src} "sdl-1.2/src/mouse.c")
|
|
set(privdeps ${privdeps} SDL::SDL)
|
|
endif()
|
|
|
|
add_library(mouse ${src})
|
|
target_include_directories(mouse PUBLIC ${inc})
|
|
target_link_libraries(mouse PUBLIC ${deps} PRIVATE ${privdeps})
|