11 lines
327 B
CMake
11 lines
327 B
CMake
project(advanced_C_standard_library C)
|
|
set_property(GLOBAL PROPERTY C_STANDARD 11)
|
|
cmake_minimum_required(VERSION 3.9)
|
|
include_directories(src)
|
|
file(GLOB SOURCES "src/*.c")
|
|
add_executable(test.out ${SOURCES})
|
|
find_program(CCACHE_PROGRAM ccache)
|
|
if(CCACHE_PROGRAM)
|
|
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
|
|
endif()
|