mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-07-03 17:51:52 +00:00
More cleanup and readme
This commit is contained in:
@ -28,3 +28,18 @@ target_link_libraries(driver
|
||||
ia32_doc
|
||||
shared
|
||||
)
|
||||
|
||||
################################################
|
||||
|
||||
set(DRIVER_FILE "$<TARGET_FILE:driver>")
|
||||
|
||||
file (GENERATE
|
||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$<LOWER_CASE:$<CONFIG>>/driver_file.h"
|
||||
CONTENT "#define DRIVER_FILE \"${DRIVER_FILE}\"\n"
|
||||
)
|
||||
|
||||
add_library(driver_file INTERFACE)
|
||||
|
||||
target_include_directories(driver_file INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/$<LOWER_CASE:$<CONFIG>>)
|
||||
|
||||
add_dependencies(driver_file driver)
|
||||
|
Reference in New Issue
Block a user