forked from audetto/AppleWin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request audetto#48 from audetto/cmake
Cmake: add ability to select frontends
- Loading branch information
Showing
5 changed files
with
3,979 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,42 @@ | ||
# there is no simple package for libretro-common | ||
# this requires user input | ||
set(LIBRETRO_COMMON_PATH NONE CACHE PATH "path to libretro-common") | ||
|
||
if (EXISTS ${LIBRETRO_COMMON_PATH}/include/libretro.h) | ||
message("Using LIBRETRO_COMMON_PATH=${LIBRETRO_COMMON_PATH}") | ||
|
||
set(SOURCE_FILES | ||
environment.cpp | ||
libretro.cpp | ||
rdirectsound.cpp | ||
game.cpp | ||
joypadbase.cpp | ||
joypad.cpp | ||
analog.cpp | ||
rdirectsound.cpp | ||
retroregistry.cpp | ||
retroframe.cpp | ||
) | ||
|
||
set(HEADER_FILES | ||
environment.h | ||
rdirectsound.h | ||
game.h | ||
joypadbase.h | ||
joypad.h | ||
analog.h | ||
rdirectsound.h | ||
retroregistry.h | ||
retroframe.h | ||
) | ||
|
||
add_library(applewin_libretro SHARED | ||
${SOURCE_FILES} | ||
${HEADER_FILES} | ||
) | ||
|
||
target_include_directories(applewin_libretro PRIVATE | ||
${LIBRETRO_COMMON_PATH}/include | ||
) | ||
|
||
target_link_libraries(applewin_libretro PRIVATE | ||
appleii | ||
common2 | ||
) | ||
|
||
# just call it "applewin_libretro.so" as per libretro standard | ||
set_target_properties(applewin_libretro PROPERTIES PREFIX "") | ||
|
||
else() | ||
message(WARNING "Bad LIBRETRO_COMMON_PATH=${LIBRETRO_COMMON_PATH}, skipping 'libretro' core") | ||
endif() | ||
set(SOURCE_FILES | ||
environment.cpp | ||
libretro.cpp | ||
rdirectsound.cpp | ||
game.cpp | ||
joypadbase.cpp | ||
joypad.cpp | ||
analog.cpp | ||
rdirectsound.cpp | ||
retroregistry.cpp | ||
retroframe.cpp | ||
) | ||
|
||
set(HEADER_FILES | ||
environment.h | ||
rdirectsound.h | ||
game.h | ||
joypadbase.h | ||
joypad.h | ||
analog.h | ||
rdirectsound.h | ||
retroregistry.h | ||
retroframe.h | ||
libretro-common/include/libretro.h | ||
) | ||
|
||
add_library(applewin_libretro SHARED | ||
${SOURCE_FILES} | ||
${HEADER_FILES} | ||
) | ||
|
||
target_include_directories(applewin_libretro PRIVATE | ||
libretro-common/include | ||
) | ||
|
||
target_link_libraries(applewin_libretro PRIVATE | ||
appleii | ||
common2 | ||
) | ||
|
||
# just call it "applewin_libretro.so" as per libretro standard | ||
set_target_properties(applewin_libretro PROPERTIES PREFIX "") |
Oops, something went wrong.