CMakeLists.txt 425 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 3.14)
  2. project(shell C)
  3. set(CMAKE_C_STANDARD 11)
  4. include_directories(.)
  5. file(STRINGS .git/refs/heads/master BuildRef)
  6. add_compile_definitions(BUILD_REF="${BuildRef}")
  7. add_executable(shell
  8. esh_deinit.c
  9. esh_deinit.h
  10. esh_init.c
  11. esh_init.h
  12. esh_main_loop.c
  13. esh_main_loop.h
  14. esh_misc.c
  15. esh_misc.h
  16. esh_types.h
  17. main.c
  18. )