[CMake] where do libraries go?

Anatoly Shirokov shirokov_a at mail.ru
Fri Feb 12 08:59:09 EST 2010


Hi, Mika!

I puts all my shared libraries into ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}:

set_target_properties(target
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}
)

It allows to debug without installation

With Best Regards,
Anatoly.

Mika.Rajala at patria.fi пишет:
> Hi
>
> I have multiple cmake projects and some of them generate shared libraries.
>
> Now to run the program in debug mode, without running the install step, i
> do ofcourse need the runtime shared libraries when i start the debug.
>
> I have the problem that i can't get the path where the library is, so I
> could tell the other cmake file to add that library to a search path.
>
> One solution might be that I set some cmake variables so that all runtime
> libraries are compiled to the same folder as the exe, but i'd rather keep
> everything in their own directories.
>
> Is this possible with cmake?
>
> -mika
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>   



More information about the CMake mailing list