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:
3
ctest/CMakeLists.txt
Normal file
3
ctest/CMakeLists.txt
Normal 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
17
ctest/main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user