Added source file groups in CMake files (for better organization of sources when opening SFML projects in IDEs)

This commit is contained in:
Laurent Gomila 2013-02-21 20:25:11 +01:00
parent 4fbefe7469
commit a40ef79a18
7 changed files with 63 additions and 33 deletions

View file

@ -205,6 +205,9 @@ macro(sfml_add_example target)
# parse the arguments
sfml_parse_arguments(THIS "SOURCES;DEPENDS" "GUI_APP" ${ARGN})
# set a source group for the source files
source_group("" FILES ${THIS_SOURCES})
# create the target
if(THIS_GUI_APP AND WINDOWS)
add_executable(${target} WIN32 ${THIS_SOURCES})