18 lines
628 B
CMake
18 lines
628 B
CMake
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(execd.cpp execd)
|
|
luna_service(run.cpp run)
|
|
luna_service(loginui.cpp loginui)
|
|
target_link_libraries(loginui PRIVATE ui)
|