mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 23:35:11 +08:00
Remove unused RESOURCES_DIR cmake option
This commit is contained in:
parent
d4ff27caad
commit
bc268fbaea
@ -280,12 +280,11 @@ endmacro()
|
|||||||
# example: 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
|
|
||||||
macro(sfml_add_example target)
|
macro(sfml_add_example target)
|
||||||
|
|
||||||
# parse the arguments
|
# parse the arguments
|
||||||
cmake_parse_arguments(THIS "GUI_APP" "RESOURCES_DIR" "SOURCES;BUNDLE_RESOURCES;DEPENDS" ${ARGN})
|
cmake_parse_arguments(THIS "GUI_APP" "" "SOURCES;BUNDLE_RESOURCES;DEPENDS" ${ARGN})
|
||||||
|
|
||||||
# set a source group for the source files
|
# set a source group for the source files
|
||||||
source_group("" FILES ${THIS_SOURCES})
|
source_group("" FILES ${THIS_SOURCES})
|
||||||
|
@ -6,8 +6,7 @@ set(SRC Island.cpp)
|
|||||||
# define the island target
|
# define the island target
|
||||||
sfml_add_example(island GUI_APP
|
sfml_add_example(island GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
|
||||||
# external dependency headers
|
# external dependency headers
|
||||||
target_include_directories(island SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/island)
|
target_include_directories(island SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/island)
|
||||||
|
@ -4,5 +4,4 @@ set(SRC Joystick.cpp)
|
|||||||
# define the joystick target
|
# define the joystick target
|
||||||
sfml_add_example(joystick GUI_APP
|
sfml_add_example(joystick GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
@ -12,8 +12,7 @@ endif()
|
|||||||
sfml_add_example(opengl GUI_APP
|
sfml_add_example(opengl GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
BUNDLE_RESOURCES ${RESOURCES}
|
BUNDLE_RESOURCES ${RESOURCES}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
|
||||||
# external dependency headers
|
# external dependency headers
|
||||||
target_include_directories(opengl SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)
|
target_include_directories(opengl SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)
|
||||||
|
@ -4,5 +4,4 @@ set(SRC Shader.cpp)
|
|||||||
# define the shader target
|
# define the shader target
|
||||||
sfml_add_example(shader GUI_APP
|
sfml_add_example(shader GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
@ -4,5 +4,4 @@ set(SRC Sound.cpp)
|
|||||||
# define the sound target
|
# define the sound target
|
||||||
sfml_add_example(sound
|
sfml_add_example(sound
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Audio
|
DEPENDS SFML::Audio)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
@ -12,5 +12,4 @@ endif()
|
|||||||
sfml_add_example(sound-effects GUI_APP
|
sfml_add_example(sound-effects GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
BUNDLE_RESOURCES ${RESOURCES}
|
BUNDLE_RESOURCES ${RESOURCES}
|
||||||
DEPENDS SFML::Audio SFML::Graphics
|
DEPENDS SFML::Audio SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
@ -11,5 +11,4 @@ endif()
|
|||||||
sfml_add_example(tennis GUI_APP
|
sfml_add_example(tennis GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
BUNDLE_RESOURCES ${RESOURCES}
|
BUNDLE_RESOURCES ${RESOURCES}
|
||||||
DEPENDS SFML::Audio SFML::Graphics
|
DEPENDS SFML::Audio SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
@ -4,8 +4,7 @@ set(SRC Vulkan.cpp)
|
|||||||
# define the window target
|
# define the window target
|
||||||
sfml_add_example(vulkan GUI_APP
|
sfml_add_example(vulkan GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
|
||||||
# external dependency headers
|
# external dependency headers
|
||||||
target_include_directories(vulkan SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/vulkan)
|
target_include_directories(vulkan SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/vulkan)
|
||||||
|
@ -4,5 +4,4 @@ set(SRC Win32.cpp)
|
|||||||
# define the win32 target
|
# define the win32 target
|
||||||
sfml_add_example(win32 GUI_APP
|
sfml_add_example(win32 GUI_APP
|
||||||
SOURCES ${SRC}
|
SOURCES ${SRC}
|
||||||
DEPENDS SFML::Graphics
|
DEPENDS SFML::Graphics)
|
||||||
RESOURCES_DIR resources)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user