From e03adb68171160a7d617f020ec71d8dd391ee6ee Mon Sep 17 00:00:00 2001 From: Alexander Trufanov Date: Mon, 8 Jan 2024 17:05:01 +0300 Subject: [PATCH] Update CMakeLists.txt --- ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt b/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt index 44344a2b..d4687881 100644 --- a/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt +++ b/ta-lib-rt/c/src/tools/ta_regtest/CMakeLists.txt @@ -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)