add_executable(simple simple.cpp)

target_include_directories(simple PRIVATE ${PROJECT_SOURCE_DIR}/lib ${ftk_GLAD_DIR})

target_link_libraries(simple ftkUI)

set_target_properties(simple PROPERTIES FOLDER examples)

# The example opens a window, so it cannot run where there is no
# OpenGL. It is still built, which is the compile check.
if(NOT ftk_TESTS_NO_GL)
    add_test(NAME simple COMMAND simple -exit -log)
endif()
