SET(ANKI_CORE_SOURCES App.cpp Async.cpp Logger.cpp StdinListener.cpp ThreadPool.cpp Timestamp.cpp)

IF(ANKI_WINDOW_BACKEND STREQUAL "GLXX11")
	SET(ANKI_CORE_SOURCES ${ANKI_CORE_SOURCES} NativeWindowGlxX11.cpp)
ELSEIF(ANKI_WINDOW_BACKEND STREQUAL "EGLX11")
	SET(ANKI_CORE_SOURCES ${ANKI_CORE_SOURCES} NativeWindowEglX11.cpp)
ELSEIF(ANKI_WINDOW_BACKEND STREQUAL "EGLFBDEV")
	SET(ANKI_CORE_SOURCES ${ANKI_CORE_SOURCES} NativeWindowEglFbdev.cpp)
ELSEIF(ANKI_WINDOW_BACKEND STREQUAL "DUMMY")
	SET(ANKI_CORE_SOURCES ${ANKI_CORE_SOURCES} NativeWindowDummy.cpp)
ELSE()
	MESSAGE(FATAL "Unrecognized ANKI_WINDOW_BACKEND: ${ANKI_WINDOW_BACKEND}")
ENDIF()

ADD_LIBRARY(ankicore ${ANKI_CORE_SOURCES})
