SFML/examples/CMakeLists.txt

45 lines
1.1 KiB
CMake
Raw Normal View History

# CLI based examples
2022-10-07 01:33:19 +08:00
if(NOT SFML_OS_IOS)
2018-02-28 04:17:08 +08:00
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)
2022-10-07 01:33:19 +08:00
if(NOT SFML_OS_IOS)
2018-02-03 20:08:44 +08:00
add_subdirectory(joystick)
2018-02-28 04:17:08 +08:00
add_subdirectory(shader)
add_subdirectory(island)
add_subdirectory(vulkan)
2022-07-13 02:45:54 +08:00
add_subdirectory(sprite_batch)
2018-02-28 04:17:08 +08:00
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_MACOSX AND ${CMAKE_GENERATOR} MATCHES "Xcode")
add_subdirectory(cocoa)
endif()
endif()
if(SFML_BUILD_GRAPHICS AND SFML_BUILD_AUDIO)
add_subdirectory(tennis)
endif()