The pure C test works again.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
cmake_minimum_required (VERSION 3.5.1) # Need >= 3.8 for first-class CUDA support
|
||||
|
||||
## Project settings
|
||||
project(astaroth CXX)
|
||||
project(astaroth C CXX)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|
||||
@@ -64,3 +64,5 @@ add_subdirectory(src/core)
|
||||
if (BUILD_STANDALONE)
|
||||
add_subdirectory(src/standalone)
|
||||
endif ()
|
||||
|
||||
add_subdirectory(src/ctest)
|
||||
|
@@ -1,3 +0,0 @@
|
||||
include_directories(${CMAKE_SOURCE_DIR}/include)
|
||||
add_executable(ctest main.c)
|
||||
target_link_libraries(ctest astaroth_core)
|
2
src/ctest/CMakeLists.txt
Normal file
2
src/ctest/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
add_executable(ctest main.c)
|
||||
target_link_libraries(ctest PRIVATE astaroth_core m)
|
@@ -7,11 +7,12 @@ int
|
||||
main(void)
|
||||
{
|
||||
AcMeshInfo info = {
|
||||
.int_params[AC_mx] = 128,
|
||||
.int_params[AC_my] = 64,
|
||||
.int_params[AC_mz] = 32,
|
||||
.int_params[AC_nx] = 128,
|
||||
.int_params[AC_ny] = 64,
|
||||
.int_params[AC_nz] = 32,
|
||||
};
|
||||
acInit(info);
|
||||
acIntegrate(0.1f);
|
||||
acQuit();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user