wut/cafe/CMakeLists.txt

23 lines
628 B
CMake
Raw Normal View History

2018-05-23 00:08:13 +02:00
cmake_minimum_required(VERSION 3.2)
project(cafe C CXX)
enable_language(ASM)
macro(add_cafe_library target)
add_custom_command(
OUTPUT ${target}.s
COMMAND ${WUT_RPLIMPORTGEN} ${CMAKE_CURRENT_SOURCE_DIR}/${target}/exports.def ${target}.s
2018-05-23 00:08:13 +02:00
DEPENDS ${target}/exports.def)
add_library(${target} STATIC ${target}.s)
install(TARGETS ${target} ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
endmacro()
add_cafe_library(coreinit)
add_cafe_library(gx2)
add_cafe_library(nn_ac)
add_cafe_library(nsysnet)
add_cafe_library(proc_ui)
add_cafe_library(sndcore2)
add_cafe_library(sysapp)
add_cafe_library(vpad)