2017-10-25 00:58:55 +08:00
|
|
|
# all source files
|
2022-06-13 00:48:48 +08:00
|
|
|
set(SRC Island.cpp)
|
2017-10-25 00:58:55 +08:00
|
|
|
|
|
|
|
# define the island target
|
|
|
|
sfml_add_example(island GUI_APP
|
|
|
|
SOURCES ${SRC}
|
2021-12-29 13:28:50 +08:00
|
|
|
DEPENDS SFML::Graphics
|
2018-04-13 02:39:55 +08:00
|
|
|
RESOURCES_DIR resources)
|
2021-04-20 21:59:24 +08:00
|
|
|
|
|
|
|
# external dependency headers
|
2021-12-14 02:51:02 +08:00
|
|
|
target_include_directories(island SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/island)
|
|
|
|
|
|
|
|
# link against pthread
|
2023-02-12 12:49:05 +08:00
|
|
|
if(SFML_OS_LINUX OR SFML_OS_FREEBSD OR SFML_OS_MACOS)
|
2021-12-14 02:51:02 +08:00
|
|
|
target_link_libraries(island PRIVATE pthread)
|
|
|
|
endif()
|