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} DEPENDS sfml-graphics sfml-window sfml-system RESOURCES_DIR resources)