and use build type the same as my main application uses.
So it looks like
add_library(some_name SHARED
${some_code}
${extra_code}
)
add_library(some_name1 STATIC
${some_code}
)
And I would like to have build type for "some_name" = Release,
and for "some_name1" the same mode as CMAKE_BUILD_TYPE,
is it possible?