Skip to content

Commit

Permalink
Test Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZettabytesCode committed Jan 13, 2024
1 parent 0c61c79 commit 0a9d7bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
23 changes: 22 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ FetchContent_Declare(
GIT_TAG v3.4.0
)

set(BOOST_ENABLE_CMAKE ON)

FetchContent_Declare(
Boost
URL https://github.com/boostorg/boost/releases/download/boost-1.81.0/boost-1.81.0.tar.xz
URL_MD5 6cf0cdd797bca685910d527ae3c08cb3
DOWNLOAD_EXTRACT_TIMESTAMP ON
)

FetchContent_Declare(
Eigen3
GIT_REPOSITORY "https://gitlab.com/libeigen/eigen.git"
GIT_TAG "3.4.0"
)

FetchContent_MakeAvailable(Catch2)
FetchContent_MakeAvailable(Boost)
FetchContent_MakeAvailable(Eigen3)

add_executable(tests test/tests.cpp)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
add_executable(source src/test.cpp)

target_link_libraries(tests PRIVATE Catch2::Catch2WithMain Eigen3::Eigen ${Boost_LIBRARIES})
target_link_libraries(source PRIVATE Catch2::Catch2WithMain Eigen3::Eigen)
4 changes: 2 additions & 2 deletions src/test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <iostream>
#include "Eigen/Dense"
#include "boost_1_82_0/boost/numeric/odeint.hpp"
#include <Eigen/Dense>
#include <boost/atomic.hpp>

using namespace std;
using Eigen::Vector3d;
Expand Down

0 comments on commit 0a9d7bd

Please sign in to comment.