16 lines
554 B
CMake
16 lines
554 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(launch.cpp launch)
|
||
|
luna_service(run.cpp run)
|