From 271dba47862d8d0da3a361eca53a0706dd2abef9 Mon Sep 17 00:00:00 2001 From: Jonathan Moussa Date: Fri, 18 Oct 2024 15:13:13 -0400 Subject: [PATCH] Move API tested back to main binary directory because of Windows runtime requirements --- CMakeLists.txt | 5 +++++ tests/CMakeLists.txt | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d20eaf8..d69859ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,6 +261,11 @@ if(TESTS) endif() message(FATAL_ERROR "Python3 and Numpy are required for MOPAC testing (testing can be disabled with -DTESTS=OFF)") endif() + add_executable(mopac-api-test) + target_link_libraries(mopac-api-test mopac-core) + if (STATIC_BUILD) + target_link_options(mopac-api-test PUBLIC "-static") + endif() enable_testing() add_subdirectory(tests) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fcf1a45b..fd1ca8e4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -32,11 +32,6 @@ macro(add_mopac_test _name _files) endmacro() #=============================================== -add_executable(mopac-api-test) -target_link_libraries(mopac-api-test mopac-core) -if (STATIC_BUILD) - target_link_options(mopac-api-test PUBLIC "-static") -endif() # Create a list of source files (src_list) with the .F90 extension set(src_list mopac_api_test