2017-10-24 18:58:55 +02:00
|
|
|
|
|
|
|
set(SRCROOT ${PROJECT_SOURCE_DIR}/examples/island)
|
|
|
|
|
|
|
|
# all source files
|
|
|
|
set(SRC ${SRCROOT}/Island.cpp)
|
|
|
|
|
|
|
|
# define the island target
|
|
|
|
sfml_add_example(island GUI_APP
|
|
|
|
SOURCES ${SRC}
|
2021-12-28 22:28:50 -07:00
|
|
|
DEPENDS SFML::Graphics
|
2018-04-12 20:39:55 +02:00
|
|
|
RESOURCES_DIR resources)
|
2021-04-20 15:59:24 +02:00
|
|
|
|
|
|
|
# external dependency headers
|
2021-12-13 19:51:02 +01:00
|
|
|
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_MACOSX)
|
|
|
|
target_link_libraries(island PRIVATE pthread)
|
|
|
|
endif()
|