Stashed some testing files used to make sure that the library can also be used from pure C projects (better compatibility). These changes will never go to master as-is.

This commit is contained in:
jpekkila
2019-07-23 18:24:47 +03:00
parent 0282f45077
commit b65454d523
9 changed files with 135 additions and 47 deletions

3
ctest/CMakeLists.txt Normal file
View File

@@ -0,0 +1,3 @@
include_directories(${CMAKE_SOURCE_DIR}/include)
add_executable(ctest main.c)
target_link_libraries(ctest astaroth_core)

17
ctest/main.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
#include "astaroth.h"
int
main(void)
{
AcMeshInfo info = {
.int_params[AC_mx] = 128,
.int_params[AC_my] = 64,
.int_params[AC_mz] = 32,
};
acInit(info);
acQuit();
return EXIT_SUCCESS;
}