这是一个本人学习 csapp 的 learning 库

15 rivejä
440 B

2 vuotta sitten
  1. cmake_minimum_required(VERSION 3.16)
  2. project(CsappLearning C)
  3. set(CMAKE_C_STANDARD 11)
  4. set(BUILD_PATH ${CMAKE_SOURCE_DIR}/build) # 自定义路径变量
  5. set(LAB_PATH ${CMAKE_SOURCE_DIR}/labs)
  6. set(EXECUTABLE_OUTPUT_PATH ${BUILD_PATH}) # EXE
  7. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BUILD_PATH}) # LIB
  8. add_executable(TestQuiz quiz/test_quiz.c)
  9. if(CMAKE_BUILD_TYPE AND (CMAKE_BUILD_TYPE STREQUAL "Debug"))
  10. add_definitions(-DDEBUG)
  11. endif()