2019-10-10 17:24:10 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
project(learningc LANGUAGES C)
|
|
|
|
|
2019-11-01 11:51:56 +00:00
|
|
|
set(CHAPTER 2)
|
2019-11-30 15:24:56 +00:00
|
|
|
set(EXERCISE 5)
|
2019-10-18 16:25:31 +00:00
|
|
|
|
|
|
|
add_executable(learningc chapters/${CHAPTER}/exercises/${EXERCISE}.c)
|
2019-11-20 20:28:44 +00:00
|
|
|
#target_link_libraries(learningc m) # Required for 2-3
|
2019-10-10 17:24:10 +00:00
|
|
|
|
|
|
|
install(TARGETS learningc RUNTIME DESTINATION bin)
|