X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=83c4b843c7568a621d7a3c7fb8228d59d2cd736c;hb=a3cae0375976d524c957493a3cc565b9f5b20bce;hp=16233ddf8ac8e1a01f283964e2cf3094fe9fdef1;hpb=7c7bc497af96e7b5845be9a2fc277036ec752be9;p=cpPlugins.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 16233dd..83c4b84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,13 @@ SET( OPTION(USE_QT4 "Build Qt4-based code" OFF) OPTION(BUILD_EXAMPLES "Build examples" OFF) +OPTION(BUILD_SHARED_LIBRARIES "Build libraries as shared" OFF) +IF(BUILD_SHARED_LIBRARIES) + SET(LIBRARY_TYPE SHARED) +ELSE(BUILD_SHARED_LIBRARIES) + SET(LIBRARY_TYPE STATIC) +ENDIF(BUILD_SHARED_LIBRARIES) + ## ======================== ## = Packages and options = ## ========================