rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
main.cpp File Reference

Entry point for the plasma1d_tests binary. More...

#include <gtest/gtest.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Detailed Description

Entry point for the plasma1d_tests binary.

Written out rather than linking GTest::gtest_main, and the reason is packaging rather than taste. conda-forge ships googletest as a DLL pair (gtest.dll and gtest_main.dll), and main does not import across a DLL boundary on Windows: linking gtest_main there produces either LNK1561: entry point must be defined or a binary that faults at startup before a single test runs. Supplying our own main and linking only GTest::gtest behaves the same whether googletest is a static archive, a shared library, or built from source by add_subdirectory, which is the three ways CMakeLists.txt can find it.

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 16 of file main.cpp.