learningc/CMakeLists.txt

11 lines
223 B
CMake

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