comparison src/CMakeLists.txt @ 82:d419660ad71d

tweak generate_stub.pl
author anatofuz
date Fri, 11 Oct 2019 19:32:16 +0900
parents c976a8bbe8c5
children d4e22a45a575
comparison
equal deleted inserted replaced
81:d41e0a5f7e2f 82:d419660ad71d
33 SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CUDA_LINK_FLAGS}" ) 33 SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CUDA_LINK_FLAGS}" )
34 endif() 34 endif()
35 35
36 set(CMAKE_BEFORE_PROJECT_PATH "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}") 36 set(CMAKE_BEFORE_PROJECT_PATH "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}")
37 include_directories(".") 37 include_directories(".")
38 include_directories(${CMAKE_SOURCE_DIR})
38 configure_file("${CMAKE_SOURCE_DIR}/kernel-cmake.ld" "${CMAKE_CURRENT_BINARY_DIR}/kernel-cmake.ld" COPYONLY) 39 configure_file("${CMAKE_SOURCE_DIR}/kernel-cmake.ld" "${CMAKE_CURRENT_BINARY_DIR}/kernel-cmake.ld" COPYONLY)
39 40
40 macro( GearsCommand ) 41 macro( GearsCommand )
41 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXV6KERNEL") 42 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXV6KERNEL")
42 set(CMAKE_C_COMPILER "${CBC_COM}") 43 set(CMAKE_C_COMPILER "${CBC_COM}")