Skip to content
Snippets Groups Projects
Commit fd598c1b authored by Ian Bell's avatar Ian Bell
Browse files

Add things to CMakeLists.txt to get compilation working

parent 381bd3cc
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,11 @@ if (MSVC)
endif()
target_link_libraries(multifluid autodiff)
add_executable(multifluid2 "${CMAKE_CURRENT_SOURCE_DIR}/src/multifluid2.cpp")
add_executable(multifluid_crit "${CMAKE_CURRENT_SOURCE_DIR}/src/multifluid_crit.cpp")
if (MSVC)
target_sources(multifluid2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/externals/Eigen/debug/msvc/eigen.natvis")
target_sources(multifluid_crit PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/externals/Eigen/debug/msvc/eigen.natvis")
endif()
target_link_libraries(multifluid2 autodiff)
target_link_libraries(multifluid_crit autodiff)
# add_executable(test_autodiff "${CMAKE_CURRENT_SOURCE_DIR}/src/test_autodiff.cpp")
# if (MSVC)
......
# Intro
This library implements advanced derivative techniques to allow for implementation of EOS without any hand-written derivatives. The name TEQP comes from Templated Equation of State Package
[![Catch tests via Github Actions](https://github.com/ianhbell/teqp/actions/workflows/runcatch.yml/badge.svg)](https://github.com/ianhbell/teqp/actions/workflows/runcatch.yml)
Written by Ian Bell, NIST.
## Build (cmake based)
Be aware: compiling takes a while in release mode (multiple minutes per file in some cases) thanks to the use of generic typing in the models. Working on making this faster...
For example to build the critical line tracing example in visual studio, do:
mkdir build
cd build
cmake ..
cmake --build . --target multifluid_crit --config Release
Release\multifluid_crit
On linux/OSX, similar:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --target multifluid_crit
./multifluid_crit
### Random notes for future readers:
* When building in WSL via VS Code, you might need to enable metadata to avoid pages of configure errors in cmake: https://github.com/microsoft/WSL/issues/4257
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment