Build: Add grub-image target to CMake

This commit is contained in:
etaIneLp 2020-05-26 17:51:18 -04:00 committed by Andreas Kling
parent ebb1649a52
commit 775d44efb5
Notes: sideshowbarker 2024-07-19 18:30:38 +09:00

View file

@ -14,6 +14,12 @@ add_custom_target(run
USES_TERMINAL
)
add_custom_target(grub-image
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-grub.sh
BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image
USES_TERMINAL
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++2a -fdiagnostics-color=always")
include_directories(Libraries)