project(XtensaGNU) file(GLOB SOURCES *.c) file(GLOB HEADERS *.h) add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS}) target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") set_target_properties(${PROJECT_NAME} PROPERTIES C_STANDARD_REQUIRED 11 C_STANDARD 11)