added shared build options to CMakeLists