Add a samples root CMakeLists.txt

This commit is contained in:
James Benton 2018-05-25 17:23:11 +01:00
parent a9829a3226
commit a9abdd3e09
3 changed files with 13 additions and 3 deletions

6
samples/CMakeLists.txt Normal file
View 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)

View File

@ -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}")