Skip to content

Commit

Permalink
Split Simulate module into Simulate and Csv
Browse files Browse the repository at this point in the history
  • Loading branch information
olejodd10 committed May 22, 2024
1 parent dce0b71 commit 3f158af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ add_library(Ramp OBJECT Ramp.c LinAlg.c IndexedVectors.c OrderedSet.c)
target_include_directories(Ramp PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_link_libraries(Ramp PUBLIC m)

add_library(Simulate OBJECT Simulate.c Csv.c)
add_library(Simulate OBJECT Simulate.c)
target_include_directories(Simulate PUBLIC ${CMAKE_SOURCE_DIR}/include)

add_library(Csv OBJECT Csv.c)
target_include_directories(Csv PUBLIC ${CMAKE_SOURCE_DIR}/include)

add_library(Timer OBJECT Timer.c)
target_include_directories(Timer PUBLIC ${CMAKE_SOURCE_DIR}/include)

Expand Down
6 changes: 3 additions & 3 deletions test/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
add_executable(TestLtiMpc TestLtiMpc.c)
target_link_libraries(TestLtiMpc PRIVATE LtiMpc Simulate Timer)
target_link_libraries(TestLtiMpc PRIVATE LtiMpc Simulate Csv Timer)

add_executable(TestLtvMpc TestLtvMpc.c)
target_link_libraries(TestLtvMpc PRIVATE LtvMpc Simulate Timer)
target_link_libraries(TestLtvMpc PRIVATE LtvMpc Simulate Csv Timer)

add_executable(TestMmcMpc TestMmcMpc.c)
target_link_libraries(TestMmcMpc PRIVATE MmcMpc Simulate MmcModel MmcMpcUtils Timer m)
target_link_libraries(TestMmcMpc PRIVATE MmcMpc Simulate Csv MmcModel MmcMpcUtils Timer m)

0 comments on commit 3f158af

Please sign in to comment.