2017-04-03 18:08:12 +02:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
include(../../cmake/HermitCore-Application.cmake)
|
|
|
|
|
|
|
|
project(hermit_tests C CXX Fortran Go)
|
|
|
|
|
|
|
|
add_executable(hello hello.c)
|
2018-07-10 08:58:19 +02:00
|
|
|
target_compile_options(hello PRIVATE -g)
|
2017-04-03 18:08:12 +02:00
|
|
|
add_executable(jacobi jacobi.c)
|
2017-11-07 19:51:57 -05:00
|
|
|
add_executable(argv_envp argv_envp.c)
|
2017-04-03 18:08:12 +02:00
|
|
|
add_executable(hello++ hello++.cpp)
|
|
|
|
add_executable(hellof hellof.f90)
|
2018-07-22 21:33:30 +02:00
|
|
|
if("${TARGET_ARCH}" STREQUAL "x86_64-hermit")
|
2017-04-03 18:08:12 +02:00
|
|
|
add_executable(pi pi.go)
|
2018-07-22 21:33:30 +02:00
|
|
|
endif()
|
2018-05-18 08:49:51 +02:00
|
|
|
add_executable(allocator allocator.c)
|
2017-04-03 18:08:12 +02:00
|
|
|
|
2018-04-26 20:57:05 +02:00
|
|
|
add_executable(endless endless.c)
|
|
|
|
target_compile_options(endless PRIVATE -fopenmp)
|
|
|
|
target_link_libraries(endless -fopenmp)
|
|
|
|
|
2017-05-19 13:45:13 +02:00
|
|
|
add_executable(test-malloc test-malloc.c)
|
|
|
|
add_executable(test-malloc-mt test-malloc-mt.c)
|
2017-05-20 00:12:40 +02:00
|
|
|
target_compile_options(test-malloc-mt PRIVATE -pthread)
|
2017-05-19 13:45:13 +02:00
|
|
|
target_link_libraries(test-malloc-mt pthread)
|
|
|
|
|
2018-07-22 21:33:30 +02:00
|
|
|
if("${TARGET_ARCH}" STREQUAL "x86_64-hermit")
|
2017-04-03 18:08:12 +02:00
|
|
|
add_executable(server server.go)
|
|
|
|
target_link_libraries(server netgo)
|
|
|
|
|
|
|
|
add_executable(RCCE_minimum RCCE_minimum.c)
|
|
|
|
target_link_libraries(RCCE_minimum ircce)
|
2018-07-22 21:33:30 +02:00
|
|
|
endif()
|
2017-04-03 18:08:12 +02:00
|
|
|
|
|
|
|
add_executable(thr_hello thr_hello.c)
|
2017-05-20 00:12:40 +02:00
|
|
|
target_compile_options(thr_hello PRIVATE -pthread)
|
2017-04-03 18:08:12 +02:00
|
|
|
target_link_libraries(thr_hello pthread)
|
2018-08-02 15:41:30 +02:00
|
|
|
add_executable(nweb23 nweb23.c)
|
|
|
|
target_compile_options(nweb23 PRIVATE -pthread)
|
|
|
|
target_link_libraries(nweb23 pthread)
|
2017-04-03 18:08:12 +02:00
|
|
|
|
|
|
|
add_executable(signals signals.c)
|
2017-05-20 00:12:40 +02:00
|
|
|
target_compile_options(signals PRIVATE -pthread)
|
2017-04-03 18:08:12 +02:00
|
|
|
target_link_libraries(signals pthread)
|
|
|
|
|
|
|
|
# deployment
|
|
|
|
install_local_targets(extra/tests)
|