learningc/CMakeLists.txt

11 lines
224 B
CMake
Raw Normal View History

2019-10-10 17:24:10 +00:00
cmake_minimum_required(VERSION 3.0)
project(learningc LANGUAGES C)
set(CHAPTER 1)
2019-10-30 20:21:30 +00:00
set(EXERCISE 24)
add_executable(learningc chapters/${CHAPTER}/exercises/${EXERCISE}.c)
2019-10-10 17:24:10 +00:00
install(TARGETS learningc RUNTIME DESTINATION bin)