- # Generate library target that can be referenced elsewhere
- quassel_add_module(Resource::${_name})
+ # Generate library target that can be referenced elsewhere. Force static, because
+ # we can't easily export symbols from the generated sources.
+ quassel_add_module(Resource::${_name} STATIC)