diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 432baf7..f1d7a84 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,16 @@ -add_library(RARE) +if (WIN32 AND TARGET Oasis::Oasis) + get_target_property(_oasis_type Oasis::Oasis TYPE) + + if (_oasis_type STREQUAL "SHARED_LIBRARY") + add_library(RARE SHARED) + elseif (_oasis_type STREQUAL "STATIC_LIBRARY") + add_library(RARE STATIC) + else () + add_library(RARE) + endif () +else () + add_library(RARE) +endif () target_sources(RARE PUBLIC FILE_SET rare_sources