mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
Add a samples root CMakeLists.txt
This commit is contained in:
parent
a9829a3226
commit
a9abdd3e09
6
samples/CMakeLists.txt
Normal file
6
samples/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(samples)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
add_subdirectory(helloworld)
|
||||
add_subdirectory(helloworld_std_thread)
|
@ -1,14 +1,18 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
project(helloworld)
|
||||
project(helloworld C)
|
||||
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
||||
|
||||
add_executable(helloworld main.cpp)
|
||||
add_executable(helloworld
|
||||
main.c)
|
||||
|
||||
target_link_libraries(helloworld
|
||||
whb
|
||||
defaultheap
|
||||
coreinit
|
||||
proc_ui
|
||||
sysapp)
|
||||
|
||||
wut_create_rpx(helloworld.rpx helloworld)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/helloworld.rpx DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/helloworld.rpx"
|
||||
DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
||||
|
Loading…
Reference in New Issue
Block a user