Symbol Visibility (-fvisibility=hidden) 1 We furthermore explicitly express the link dependency between our and the corresponding. This way, we make sure that we use the content of private_impl.cpp in the right context. Get_target_property (private_link_libraries LINK_LIBRARIES) Get_target_property (private_include_dirs INCLUDE_DIRECTORIES) This can be done using CMakes property system, i.e., we can get the necessary properties from and reuse them for : add_executable( test.t.cpp) We simply need to access this information within our test environment. We can explicitly model the depency on the private implementation of, since we already specify all required information within the top level CMakeLists.txt. With the “patch” from before we now test private_impl.cpp in another context than it is normally used in.
0 Comments
Leave a Reply. |