mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
eb162df723
Added in CMake 3.14 so this wasn't accessible in prior versions of SFML
13 lines
329 B
CMake
13 lines
329 B
CMake
find_package(X11 REQUIRED)
|
|
|
|
# all source files
|
|
set(SRC X11.cpp)
|
|
|
|
# define the X11 target
|
|
sfml_add_example(X11Example GUI_APP
|
|
SOURCES ${SRC}
|
|
DEPENDS SFML::Window X11::X11)
|
|
|
|
# external dependency headers
|
|
target_include_directories(X11Example SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/examples/include)
|