[CMake] how do I test if a library target is static or shared?
Mike Jackson
mike.jackson at bluequartz.net
Mon Sep 22 17:15:37 EDT 2008
Assuming you mean a library that you are creating the default is
static. If you want a dynamic library then use the "SHARED" keyword:
add_library (mylib SHARED libsource.cpp)
_________________________________________________
| Mike Jackson - Principal Software Engineer |
| BlueQuartz Software |
| mike.jackson at bluequartz.net |
| www.bluequartz.net |
---------------------------------------------------
On Sep 22, 2008, at 5:03 PM, Aleksander Demko wrote:
> How do I test if a library target is static or shared? I've checked
> the target properties and commands and nothing sticks out.
>
> Thanks!
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list