Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
trufanov-nok authored Jan 8, 2024
1 parent edf7253 commit e03adb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ SET(ta_regtest_CSOURCES

ADD_EXECUTABLE(ta_regtest ${ta_regtest_CSOURCES})
add_dependencies(ta_regtest ta-lib-rt)

if (WIN32)
target_link_libraries(ta_regtest ta-lib-rt_a m)
else()
target_link_libraries(ta_regtest ta-lib-rt m)
endif(WIN32)

link_directories(ta_regtest ${ta-lib-rt_BINARY_DIR}/lib)

ADD_TEST(NAME "regtest" COMMAND ta_regtest)

0 comments on commit e03adb6

Please sign in to comment.