ladybird/Kernel/Modules/CMakeLists.txt

8 lines
258 B
CMake

set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
function(serenity_kernel_module name sources)
add_library(${name} STATIC ${sources})
install(FILES $<TARGET_OBJECTS:${name}> DESTINATION mod)
endfunction()
serenity_kernel_module(TestModule TestModule.cpp)