CMake: build shape and texture examples (#432)

This commit is contained in:
kai 2018-01-17 20:14:14 +01:00 committed by Ahmad Fatoum
parent 727cb1819b
commit bdb61306ac

View file

@ -11,7 +11,7 @@ include_directories("../src/external")
include_directories("../src/external/glfw/include") include_directories("../src/external/glfw/include")
# Get the sources together # Get the sources together
set(example_dirs audio core models others shaders text texutures) set(example_dirs audio core models others shaders shapes text textures)
set(CMAKE_REQUIRED_DEFINITIONS -D_POSIX_C_SOURCE=199309L) set(CMAKE_REQUIRED_DEFINITIONS -D_POSIX_C_SOURCE=199309L)
include(CheckSymbolExists) include(CheckSymbolExists)
check_symbol_exists(CLOCK_MONOTONIC time.h HAVE_CLOCK_MONOTONIC) check_symbol_exists(CLOCK_MONOTONIC time.h HAVE_CLOCK_MONOTONIC)