mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
cmake/Macros.cmake: ex:->examples:
vim interprets the # ex: comments as a modeline, which causes editing this file with vim to throw an error. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
This commit is contained in:
parent
192eb968a4
commit
c828314d12
@ -1,7 +1,7 @@
|
||||
include(CMakeParseArguments)
|
||||
|
||||
# set the appropriate standard library on each platform for the given target
|
||||
# ex: sfml_set_stdlib(sfml-system)
|
||||
# example: sfml_set_stdlib(sfml-system)
|
||||
function(sfml_set_stdlib target)
|
||||
# for gcc >= 4.0 on Windows, apply the SFML_USE_STATIC_STD_LIBS option if it is enabled
|
||||
if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC AND NOT SFML_GCC_VERSION VERSION_LESS "4")
|
||||
@ -23,7 +23,7 @@ function(sfml_set_stdlib target)
|
||||
endfunction()
|
||||
|
||||
# add a new target which is a SFML library
|
||||
# ex: sfml_add_library(sfml-graphics
|
||||
# example: sfml_add_library(sfml-graphics
|
||||
# SOURCES sprite.cpp image.cpp ...
|
||||
# [STATIC]) # Always create a static library and ignore BUILD_SHARED_LIBS
|
||||
macro(sfml_add_library target)
|
||||
@ -178,7 +178,7 @@ macro(sfml_add_library target)
|
||||
endmacro()
|
||||
|
||||
# add a new target which is a SFML example
|
||||
# ex: sfml_add_example(ftp
|
||||
# example: sfml_add_example(ftp
|
||||
# SOURCES ftp.cpp ...
|
||||
# BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable
|
||||
# DEPENDS sfml-network
|
||||
|
Loading…
Reference in New Issue
Block a user