mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
ddfb7f6cb0
In a few places I left references to the old name where appropriate. There are also many CMake references to "OSX" that we have to keep using since CMake does not offer alternative names for those variables and target properties.
17 lines
468 B
CMake
17 lines
468 B
CMake
# all source files
|
|
set(SRC Island.cpp)
|
|
|
|
# define the island target
|
|
sfml_add_example(island GUI_APP
|
|
SOURCES ${SRC}
|
|
DEPENDS SFML::Graphics
|
|
RESOURCES_DIR resources)
|
|
|
|
# external dependency headers
|
|
target_include_directories(island SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/island)
|
|
|
|
# link against pthread
|
|
if(SFML_OS_LINUX OR SFML_OS_FREEBSD OR SFML_OS_MACOS)
|
|
target_link_libraries(island PRIVATE pthread)
|
|
endif()
|