This is a fork of Zandronum for Mac Os (Silicon and Intel)
Revision | 5b4404a0b92a326ff6eab747dd514e2bd26485a6 (tree) |
---|---|
Time | 2021-11-15 06:07:28 |
Author | Joshua Surace <doomjoshuaboy@live...> |
Commiter | Joshua Surace |
Cmake fixes
@@ -332,7 +332,7 @@ | ||
332 | 332 | message( STATUS "Could not find FMOD library" ) |
333 | 333 | set( NO_FMOD ON ) |
334 | 334 | endif( FMOD_LIBRARY ) |
335 | -endif( NO_SOUND ) | |
335 | +endif( NOT NO_SOUND ) | |
336 | 336 | |
337 | 337 | # Search for FluidSynth |
338 | 338 |
@@ -646,6 +646,9 @@ | ||
646 | 646 | set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" ) |
647 | 647 | # [BB] Without sound, we don't need FMOD. |
648 | 648 | if ( NOT NO_SOUND ) |
649 | + set( ZDOOM_LIBS ${ZDOOM_LIBS} "${FMOD_LIBRARY}" ) | |
650 | + include_directories( "${ZLIB_INCLUDE_DIR}" "${FMOD_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" "${JPEG_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" ) | |
651 | + else ( NOT NO_SOUND ) | |
649 | 652 | if( NOT DYN_FLUIDSYNTH) |
650 | 653 | if( FLUIDSYNTH_FOUND ) |
651 | 654 | set( ZDOOM_LIBS ${ZDOOM_LIBS} "${FLUIDSYNTH_LIBRARIES}" ) |
@@ -757,12 +760,9 @@ | ||
757 | 760 | set( SYSTEM_SOURCES ${SYSTEM_SOURCES} ${PLAT_MAC_SOURCES} ) |
758 | 761 | set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ) |
759 | 762 | set_source_files_properties( sdl/osx/zandronum.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources ) |
760 | - set_source_files_properties( sdl/iwadpicker_cocoa.mm PROPERTIES COMPILE_FLAGS -fobjc-exceptions ) | |
761 | - set_target_properties(zdoom PROPERTIES XCODE_EMBED_FRAMEWORKS "${SDL2_LIBRARY}") | |
763 | + set_source_files_properties( sdl/osx/iwadpicker_cocoa.mm PROPERTIES COMPILE_FLAGS -fobjc-exceptions ) | |
762 | 764 | set_source_files_properties("${SDL2_LIBRARY}" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks) |
763 | 765 | set_source_files_properties("${FMOD_LIBRARY}" PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks) |
764 | - set_source_files_properties(DIRECTORY "${HOME}/Documents/Zandronum/announcer PROPERTIES MACOSX_PACKAGE_LOCATION MacOS) | |
765 | - set_source_files_properties(DIRECTORY "${HOME}/Documents/Zandronum/skins PROPERTIES MACOSX_PACKAGE_LOCATION MacOS) | |
766 | 766 | else( APPLE ) |
767 | 767 | set( OTHER_SYSTEM_SOURCES ${PLAT_WIN32_SOURCES} ${PLAT_MAC_SOURCES} ) |
768 | 768 | endif( APPLE ) |