Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CMake variables to select the modules to be built
This addresses issue #798.
- Loading branch information
1 parent
67ef694
commit 40cb8cd
Showing
3 changed files
with
77 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
|
||
# add the examples subdirectories | ||
add_subdirectory(ftp) | ||
add_subdirectory(opengl) | ||
add_subdirectory(pong) | ||
add_subdirectory(shader) | ||
add_subdirectory(sockets) | ||
add_subdirectory(sound) | ||
add_subdirectory(sound_capture) | ||
add_subdirectory(voip) | ||
add_subdirectory(window) | ||
if(SFML_OS_WINDOWS) | ||
add_subdirectory(win32) | ||
elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD) | ||
add_subdirectory(X11) | ||
elseif(SFML_OS_MACOSX) | ||
add_subdirectory(cocoa) | ||
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() | ||
if(SFML_BUILD_WINDOW) | ||
add_subdirectory(window) | ||
endif() | ||
if(SFML_BUILD_GRAPHICS) | ||
add_subdirectory(opengl) | ||
add_subdirectory(shader) | ||
if(SFML_OS_WINDOWS) | ||
add_subdirectory(win32) | ||
elseif(SFML_OS_LINUX OR SFML_OS_FREEBSD) | ||
add_subdirectory(X11) | ||
elseif(SFML_OS_MACOSX) | ||
add_subdirectory(cocoa) | ||
endif() | ||
endif() | ||
if(SFML_BUILD_GRAPHICS AND SFML_BUILD_AUDIO) | ||
add_subdirectory(pong) | ||
endif() |
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