mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +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
|
||||
# SOURCES ftp.cpp ...
|
||||
# BUNDLE_RESOURCES MainMenu.nib ... # Files to be added in target but not installed next to the executable
|
||||
# DEPENDS SFML::Network
|
||||
# RESOURCES_DIR resources) # A directory to install next to the executable and sources
|
||||
# DEPENDS SFML::Network)
|
||||
macro(sfml_add_example target)
|
||||
|
||||
# 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
|
||||
source_group("" FILES ${THIS_SOURCES})
|
||||
|
@ -6,8 +6,7 @@ set(SRC Island.cpp)
|
||||
# define the island target
|
||||
sfml_add_example(island GUI_APP
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
||||
# external dependency headers
|
||||
target_include_directories(island SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/island)
|
||||
|
@ -4,5 +4,4 @@ set(SRC Joystick.cpp)
|
||||
# define the joystick target
|
||||
sfml_add_example(joystick GUI_APP
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
@ -12,8 +12,7 @@ endif()
|
||||
sfml_add_example(opengl GUI_APP
|
||||
SOURCES ${SRC}
|
||||
BUNDLE_RESOURCES ${RESOURCES}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
||||
# external dependency headers
|
||||
target_include_directories(opengl SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)
|
||||
|
@ -4,5 +4,4 @@ set(SRC Shader.cpp)
|
||||
# define the shader target
|
||||
sfml_add_example(shader GUI_APP
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
@ -4,5 +4,4 @@ set(SRC Sound.cpp)
|
||||
# define the sound target
|
||||
sfml_add_example(sound
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Audio
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Audio)
|
||||
|
@ -12,5 +12,4 @@ endif()
|
||||
sfml_add_example(sound-effects GUI_APP
|
||||
SOURCES ${SRC}
|
||||
BUNDLE_RESOURCES ${RESOURCES}
|
||||
DEPENDS SFML::Audio SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Audio SFML::Graphics)
|
||||
|
@ -11,5 +11,4 @@ endif()
|
||||
sfml_add_example(tennis GUI_APP
|
||||
SOURCES ${SRC}
|
||||
BUNDLE_RESOURCES ${RESOURCES}
|
||||
DEPENDS SFML::Audio SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Audio SFML::Graphics)
|
||||
|
@ -4,8 +4,7 @@ set(SRC Vulkan.cpp)
|
||||
# define the window target
|
||||
sfml_add_example(vulkan GUI_APP
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
||||
# external dependency headers
|
||||
target_include_directories(vulkan SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/vulkan)
|
||||
|
@ -4,5 +4,4 @@ set(SRC Win32.cpp)
|
||||
# define the win32 target
|
||||
sfml_add_example(win32 GUI_APP
|
||||
SOURCES ${SRC}
|
||||
DEPENDS SFML::Graphics
|
||||
RESOURCES_DIR resources)
|
||||
DEPENDS SFML::Graphics)
|
||||
|
Loading…
Reference in New Issue
Block a user