mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-04 19:44:16 +01:00
samples/cmake: Update to use new cmake functions.
This commit is contained in:
parent
217bf98474
commit
bffffdf515
@ -12,7 +12,7 @@ target_link_libraries(curl
|
||||
nsysnet
|
||||
nlibcurl)
|
||||
|
||||
wut_create_rpx(curl.rpx curl)
|
||||
wut_create_rpx(curl)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/curl.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -6,7 +6,7 @@ add_executable(custom_default_heap
|
||||
main.c)
|
||||
|
||||
wut_add_exports(custom_default_heap exports.def)
|
||||
wut_create_rpx(custom_default_heap.rpx custom_default_heap)
|
||||
wut_create_rpx(custom_default_heap)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/custom_default_heap.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -5,7 +5,7 @@ include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
|
||||
add_executable(gx2_triangle
|
||||
main.c)
|
||||
|
||||
wut_create_rpx(gx2_triangle.rpx gx2_triangle)
|
||||
wut_create_rpx(gx2_triangle)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gx2_triangle.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -5,7 +5,7 @@ include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
|
||||
add_executable(helloworld
|
||||
main.c)
|
||||
|
||||
wut_create_rpx(helloworld.rpx helloworld)
|
||||
wut_create_rpx(helloworld)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/helloworld.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -5,8 +5,7 @@ include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
|
||||
add_executable(helloworld_cpp
|
||||
main.cpp)
|
||||
|
||||
wut_create_rpx(helloworld_cpp.rpx
|
||||
helloworld_cpp)
|
||||
wut_create_rpx(helloworld_cpp)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/helloworld_cpp.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -6,7 +6,7 @@ add_executable(my_first_rpl
|
||||
my_first_rpl.c)
|
||||
|
||||
wut_add_exports(my_first_rpl exports.def)
|
||||
wut_create_rpl(my_first_rpl.rpl my_first_rpl)
|
||||
wut_create_rpl(my_first_rpl)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/my_first_rpl.rpl"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -5,7 +5,7 @@ include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
|
||||
add_executable(swkbd
|
||||
main.cpp)
|
||||
|
||||
wut_create_rpx(swkbd_sample.rpx swkbd)
|
||||
wut_create_rpx(swkbd)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/swkbd_sample.rpx"
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/swkbd.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
@ -21,7 +21,7 @@ macro(wut_default_malloc target)
|
||||
endmacro()
|
||||
|
||||
# Generates ${target}_exports.s from an exports file and adds it to the build
|
||||
macro(wut_add_exports target exports_file)
|
||||
function(wut_add_exports target exports_file)
|
||||
set(RPL_EXPORTS_FILE ${exports_file})
|
||||
if(NOT IS_ABSOLUTE ${exports_file})
|
||||
set(RPL_EXPORTS_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${exports_file}")
|
||||
@ -36,7 +36,7 @@ macro(wut_add_exports target exports_file)
|
||||
target_sources(${target} PRIVATE ${RPL_EXPORT_GEN_OUTPUT})
|
||||
|
||||
set_source_files_properties(${RPL_EXPORT_GEN_OUTPUT} PROPERTIES LANGUAGE C)
|
||||
endmacro()
|
||||
endfunction()
|
||||
|
||||
function(wut_create_rpl_deprecated target source)
|
||||
set(RPL_OPTIONS IS_RPX)
|
||||
|
Loading…
Reference in New Issue
Block a user