2024-07-21 11:24:46 +00:00
|
|
|
function(luna_service SOURCE_FILE APP_NAME)
|
|
|
|
add_executable(${APP_NAME} ${SOURCE_FILE})
|
|
|
|
target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
|
|
|
|
add_dependencies(${APP_NAME} libc)
|
|
|
|
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
|
|
|
|
target_link_libraries(${APP_NAME} PRIVATE os)
|
|
|
|
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_BASE}/usr/bin)
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
add_subdirectory(libui)
|
|
|
|
add_subdirectory(wind)
|
|
|
|
add_subdirectory(apps)
|
|
|
|
|
|
|
|
luna_service(launch.cpp launch)
|
|
|
|
luna_service(run.cpp run)
|
2024-07-31 17:50:20 +00:00
|
|
|
luna_service(loginui.cpp loginui)
|
|
|
|
target_link_libraries(loginui PRIVATE ui)
|