Enlace biblioteca estática utilizando CMake
No puedo conseguir la biblioteca${static_library}
enlazar estáticamente usando CMake. He intentado codificar el camino y, por lo que sé,TARGET_LINK_LIBRARIES
debe vincular esto en forma automática.
ADD_LIBRARY(libraryA STATIC ${source_files})
TARGET_LINK_LIBRARIES(libraryA debug ${static_library})
Hay un subproyecto que enlazalibraryA
más tarde en la construcción
ADD_EXECUTABLE(testA ${test_sources})
TARGET_LINK_LIBRARIES(testA libraryA)
que tiene $ {static_library} correctamente enlazado pero necesito${static_library}
estar directamente vinculado alibraryA
.