Added source file groups in CMake files (for better organization of sources when opening SFML projects in IDEs)
This commit is contained in:
parent
4fbefe7469
commit
a40ef79a18
7 changed files with 63 additions and 33 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue