Skip to content

Commit

Permalink
New hydro remix : create a cmake target for remix hydro algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Jan 7, 2025
1 parent 511435a commit 37bb2be
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
12 changes: 12 additions & 0 deletions src/solver/simulation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ target_link_libraries(antares-solver-simulation
antares-solver-ts-generator
)

# Remix hydro algorithm
add_library(shave-peaks-by-remix-hydro)

target_sources(shave-peaks-by-remix-hydro
PRIVATE
shave-peaks-by-remix-hydro.cpp)

target_include_directories(shave-peaks-by-remix-hydro
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)


install(DIRECTORY include/antares
DESTINATION "include"
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "include/antares/solver/simulation/hydro-remix-new.h"
#include "include/antares/solver/simulation/shave-peaks-by-remix-hydro.h"

#include <algorithm>
#include <ranges>
Expand Down
4 changes: 1 addition & 3 deletions src/tests/src/solver/simulation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ add_boost_test(test-hydro_final
add_boost_test(tests-on-hydro-remix
SRC
test-hydro-remix.cpp
${src_solver_simulation}/hydro-remix-new.cpp
INCLUDE
"${src_solver_simulation}"
LIBS
shave-peaks-by-remix-hydro
test_utils_unit)
2 changes: 1 addition & 1 deletion src/tests/src/solver/simulation/test-hydro-remix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <boost/test/unit_test.hpp>

#include "include/antares/solver/simulation/hydro-remix-new.h"
#include "antares/solver/simulation/shave-peaks-by-remix-hydro.h"

using namespace Antares::Solver::Simulation;

Expand Down

0 comments on commit 37bb2be

Please sign in to comment.