mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
ddfb7f6cb0
In a few places I left references to the old name where appropriate. There are also many CMake references to "OSX" that we have to keep using since CMake does not offer alternative names for those variables and target properties.
44 lines
1.0 KiB
CMake
44 lines
1.0 KiB
CMake
# CLI based examples
|
|
if(NOT SFML_OS_IOS)
|
|
if(SFML_BUILD_NETWORK)
|
|
add_subdirectory(ftp)
|
|
add_subdirectory(sockets)
|
|
endif()
|
|
if(SFML_BUILD_NETWORK AND SFML_BUILD_AUDIO)
|
|
add_subdirectory(voip)
|
|
endif()
|
|
if(SFML_BUILD_AUDIO)
|
|
add_subdirectory(sound)
|
|
add_subdirectory(sound_capture)
|
|
endif()
|
|
endif()
|
|
|
|
# GUI based examples
|
|
if(SFML_BUILD_WINDOW)
|
|
add_subdirectory(window)
|
|
endif()
|
|
|
|
if(SFML_BUILD_GRAPHICS)
|
|
add_subdirectory(opengl)
|
|
|
|
if(NOT SFML_OS_IOS)
|
|
add_subdirectory(joystick)
|
|
add_subdirectory(shader)
|
|
add_subdirectory(island)
|
|
add_subdirectory(vulkan)
|
|
endif()
|
|
|
|
if(SFML_OS_WINDOWS)
|
|
add_subdirectory(win32)
|
|
elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
|
if(NOT SFML_USE_DRM)
|
|
add_subdirectory(X11)
|
|
endif()
|
|
elseif(SFML_OS_MACOS AND ${CMAKE_GENERATOR} MATCHES "Xcode")
|
|
add_subdirectory(cocoa)
|
|
endif()
|
|
endif()
|
|
if(SFML_BUILD_GRAPHICS AND SFML_BUILD_AUDIO)
|
|
add_subdirectory(tennis)
|
|
endif()
|