Mercurial > hg > Members > anatofuz > CbC_xv6
comparison src/CMakeLists.txt @ 83:d4e22a45a575
mod copy to interface/*.h to *.dir
author | anatofuz |
---|---|
date | Sat, 12 Oct 2019 15:22:33 +0900 |
parents | d419660ad71d |
children | a4307abefd0b |
comparison
equal
deleted
inserted
replaced
82:d419660ad71d | 83:d4e22a45a575 |
---|---|
75 list(APPEND _Gears_CSOURCES ${j}) | 75 list(APPEND _Gears_CSOURCES ${j}) |
76 endif() | 76 endif() |
77 endforeach(i) | 77 endforeach(i) |
78 | 78 |
79 #target_link_libraries(syslib) | 79 #target_link_libraries(syslib) |
80 file(COPY "${CMAKE_SOURCE_DIR}/interface/" DESTINATION ${CMAKE_KERNEL_DIR}) | |
80 file(COPY "${CMAKE_SOURCE_DIR}/context.h" DESTINATION ${CMAKE_KERNEL_DIR}) | 81 file(COPY "${CMAKE_SOURCE_DIR}/context.h" DESTINATION ${CMAKE_KERNEL_DIR}) |
81 add_custom_command ( | 82 add_custom_command ( |
82 OUTPUT ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c | 83 OUTPUT ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c |
83 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode | 84 DEPENDS ${_Gears_CBC_SOURCES} fs.img initcode |
84 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} ${_Gears_CBC_SOURCES} | 85 COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} ${_Gears_CBC_SOURCES} |