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)
|
include(CMakeParseArguments)
|
||||||
|
|
||||||
# set the appropriate standard library on each platform for the given target
|
# 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)
|
function(sfml_set_stdlib target)
|
||||||
# for gcc >= 4.0 on Windows, apply the SFML_USE_STATIC_STD_LIBS option if it is enabled
|
# 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")
|
if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC AND NOT SFML_GCC_VERSION VERSION_LESS "4")
|
||||||
@ -23,9 +23,9 @@ function(sfml_set_stdlib target)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# add a new target which is a SFML library
|
# 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 ...
|
# SOURCES sprite.cpp image.cpp ...
|
||||||
# [STATIC]) # Always create a static library and ignore BUILD_SHARED_LIBS
|
# [STATIC]) # Always create a static library and ignore BUILD_SHARED_LIBS
|
||||||
macro(sfml_add_library target)
|
macro(sfml_add_library target)
|
||||||
|
|
||||||
# parse the arguments
|
# parse the arguments
|
||||||
@ -178,11 +178,11 @@ macro(sfml_add_library target)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# add a new target which is a SFML example
|
# add a new target which is a SFML example
|
||||||
# ex: sfml_add_example(ftp
|
# example: sfml_add_example(ftp
|
||||||
# SOURCES ftp.cpp ...
|
# SOURCES ftp.cpp ...
|
||||||
# BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable
|
# BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable
|
||||||
# DEPENDS sfml-network
|
# DEPENDS sfml-network
|
||||||
# RESOURCES_DIR resources) # A directory to install next to the executable and sources
|
# RESOURCES_DIR resources) # A directory to install next to the executable and sources
|
||||||
macro(sfml_add_example target)
|
macro(sfml_add_example target)
|
||||||
|
|
||||||
# parse the arguments
|
# parse the arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user