Cleanup tests cmake scripts.

This commit is contained in:
James Benton 2019-11-20 17:23:42 +00:00
parent 6d63b6cf2d
commit ac36f99f62
4 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.2)
set(CMAKE_TOOLCHAIN_FILE $ENV{WUT_ROOT}/share/wut.toolchain.cmake)
project(tests)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
include_directories("test_compile_headers_common")
add_subdirectory(test_compile_headers_as_c11)

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.2)
project(test_compile_headers_as_c11 C)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
set(CMAKE_C_STANDARD 11)

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.2)
project(test_compile_headers_as_c99 C)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
set(CMAKE_C_STANDARD 99)

View File

@ -1,9 +1,8 @@
cmake_minimum_required(VERSION 3.2)
project(test_compile_headers_as_cpp CXX)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
add_executable(test_compile_headers_as_cpp
main.cpp)
wut_enable_stdcpp(test_compile_headers_as_cpp)
wut_create_rpx(test_compile_headers_as_cpp.rpx test_compile_headers_as_cpp)