learningc/CMakeLists.txt

11 lines
224 B
CMake

cmake_minimum_required(VERSION 3.0)
project(learningc LANGUAGES C)
set(CHAPTER 1)
set(EXERCISE 22)
add_executable(learningc chapters/${CHAPTER}/exercises/${EXERCISE}.c)
install(TARGETS learningc RUNTIME DESTINATION bin)