recover original new style library target names through ALIAS library definitions

This commit is contained in:
Axel Kohlmeyer
2021-10-22 08:23:49 -04:00
parent b57c8bda51
commit ad81dd3960
8 changed files with 48 additions and 44 deletions

View File

@ -21,7 +21,7 @@ else()
endif()
add_executable(test_python_package test_python_package.cpp)
target_link_libraries(test_python_package PRIVATE lammps gmock)
target_link_libraries(test_python_package PRIVATE lammps GTest::GMock)
target_compile_definitions(test_python_package PRIVATE -DTEST_INPUT_FOLDER=${TEST_INPUT_FOLDER})
# this requires CMake 3.12. don't care to add backward compatibility for this.
if(Python3_Development_FOUND)