2018-04-12 03:45:36 +08:00
|
|
|
# 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()
|
2018-04-12 03:45:36 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# GUI based examples
|
|
|
|
if(SFML_BUILD_WINDOW)
|
|
|
|
add_subdirectory(window)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(SFML_BUILD_GRAPHICS)
|
2024-06-30 22:13:51 +08:00
|
|
|
add_subdirectory(event_handling)
|
2018-04-12 03:45:36 +08:00
|
|
|
add_subdirectory(opengl)
|
2015-04-29 11:28:02 +08:00
|
|
|
add_subdirectory(stencil)
|
2018-04-13 02:39:55 +08:00
|
|
|
|
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)
|
2018-04-13 02:39:55 +08:00
|
|
|
add_subdirectory(island)
|
2018-09-15 17:49:16 +08:00
|
|
|
add_subdirectory(vulkan)
|
2018-02-28 04:17:08 +08:00
|
|
|
endif()
|
2018-04-13 02:39:55 +08:00
|
|
|
|
2018-04-12 03:45:36 +08:00
|
|
|
if(SFML_OS_WINDOWS)
|
|
|
|
add_subdirectory(win32)
|
2020-05-29 00:28:37 +08:00
|
|
|
add_subdirectory(raw_input)
|
2018-04-12 03:45:36 +08:00
|
|
|
elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD)
|
2022-04-25 21:01:54 +08:00
|
|
|
if(NOT SFML_USE_DRM)
|
|
|
|
add_subdirectory(X11)
|
2020-05-29 00:28:37 +08:00
|
|
|
add_subdirectory(raw_input)
|
2022-04-25 21:01:54 +08:00
|
|
|
endif()
|
2023-12-23 10:14:13 +08:00
|
|
|
elseif(SFML_OS_MACOS)
|
2018-04-12 03:45:36 +08:00
|
|
|
add_subdirectory(cocoa)
|
2015-02-21 21:46:46 +08:00
|
|
|
endif()
|
2018-04-12 03:45:36 +08:00
|
|
|
endif()
|
|
|
|
if(SFML_BUILD_GRAPHICS AND SFML_BUILD_AUDIO)
|
2020-12-13 04:40:52 +08:00
|
|
|
add_subdirectory(tennis)
|
2024-11-23 04:34:00 +08:00
|
|
|
add_subdirectory(keyboard)
|
2024-03-25 07:06:21 +08:00
|
|
|
|
|
|
|
if(NOT SFML_OPENGL_ES)
|
|
|
|
add_subdirectory(sound_effects)
|
|
|
|
endif()
|
2018-04-12 03:45:36 +08:00
|
|
|
endif()
|