diff --git a/Tests/Functional/TestMachinery/CMakeLists.txt b/Tests/Functional/TestMachinery/CMakeLists.txt index 8b4284adaf21b9cef06671c0f3a133f83734c288..0cffff6101a7446fde686bf8a021dc3e966d347d 100644 --- a/Tests/Functional/TestMachinery/CMakeLists.txt +++ b/Tests/Functional/TestMachinery/CMakeLists.txt @@ -10,24 +10,16 @@ if(WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBA_CORE_BUILD_DLL") endif() -# --- making library --------- add_library(${library_name} SHARED ${source_files}) +target_link_libraries(${library_name} ${BornAgainCore_LIBRARY} ${CMAKE_THREAD_LIBS_INIT}) set_target_properties(${library_name} PROPERTIES PREFIX ${libprefix} SUFFIX ${libsuffix}) set(${library_name}_LIBRARY_TYPE SHARED) -# exposing library name and list of include directories outside set(${library_name}_INCLUDE_DIRS ${include_dirs} PARENT_SCOPE) set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE) -# --- external dependencies --------- - -target_link_libraries(${library_name} - ${BornAgainCore_LIBRARY} - ${CMAKE_THREAD_LIBS_INIT} - ) - if(APPLE AND BORNAGAIN_APPLE_BUNDLE) set(link_flags "-Wl,-rpath,@loader_path/../../Frameworks") set_target_properties(${library_name} PROPERTIES LINK_FLAGS ${link_flags})