diff options
Diffstat (limited to 'driver/CMakeLists.txt')
-rw-r--r-- | driver/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/driver/CMakeLists.txt b/driver/CMakeLists.txt index 1daeb08..844cb5a 100644 --- a/driver/CMakeLists.txt +++ b/driver/CMakeLists.txt @@ -14,5 +14,18 @@ ADD_CUSTOM_TARGET(pptp_drv ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/driver/pptp.ko ) +ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/driver/isg.ko + COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR}/driver + COMMAND mkdir ${CMAKE_CURRENT_BINARY_DIR}/driver + COMMAND ln -sf ${CMAKE_CURRENT_SOURCE_DIR}/* ${CMAKE_CURRENT_BINARY_DIR}/driver + COMMAND make -C ${KDIR} M=${CMAKE_CURRENT_BINARY_DIR}/driver modules + DEPENDS isg.c +) + +ADD_CUSTOM_TARGET(isg_drv ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/driver/isg.ko +) + + INSTALL(CODE "EXECUTE_PROCESS(COMMAND make -C ${KDIR} M=${CMAKE_CURRENT_BINARY_DIR}/driver modules_install)") |