My project has a folder containing third-party libraries (google test, zlib, ...). I want to put the libraries in a shared folder when all these libraries are created. I am trying to do this with cmake, but I am having problems. I am trying this code:
add_subdirectory(gtest-1.6.0) add_custom_command( TARGET gtest_main POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SRC_LIB_DIR}/*.a ${DST_LIB_DIR})
I think the problem may be that the target main goal is not defined at this level, but at a lower level
cmake
Killrazor
source share