Mercurial > hg > CbC > CbC_xv6
comparison src/CMakeLists.txt @ 62:a28580a75faa
fix build fs.img
author | anatofuz |
---|---|
date | Thu, 25 Jul 2019 20:04:17 +0900 |
parents | b3a3224e1823 |
children | 58c79e0c5101 |
comparison
equal
deleted
inserted
replaced
61:b3a3224e1823 | 62:a28580a75faa |
---|---|
1 cmake_minimum_required(VERSION 3.8) | 1 cmake_minimum_required(VERSION 3.8) |
2 project(xv6cbc C ASM) | 2 project(xv6cbc C ASM) |
3 set(BUILD_DIR ${PROJECT_BINARY_DIR}) | |
3 add_subdirectory(tools) | 4 add_subdirectory(tools) |
4 add_subdirectory(usr) | 5 add_subdirectory(usr) |
5 | 6 |
6 | 7 |
7 set(USE_CUDA,0) | 8 set(USE_CUDA,0) |
75 ) | 76 ) |
76 add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} c/${_Gears_TARGET}-context.c ) | 77 add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} c/${_Gears_TARGET}-context.c ) |
77 # target_link_libraries(${_Gears_TARGET} m pthread) | 78 # target_link_libraries(${_Gears_TARGET} m pthread) |
78 endmacro() | 79 endmacro() |
79 | 80 |
81 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXV6KERNEL") | |
80 | 82 |
81 GearsCommand ( | 83 GearsCommand ( |
82 TARGET | 84 TARGET |
83 kernel | 85 kernel |
84 SOURCES | 86 SOURCES |