project(BVSEXAMPLEMODULE)

add_library(BVSExampleModule SHARED BVSExampleModule.cc)
target_link_libraries(BVSExampleModule bvs)

project(BVSEXAMPLEMODULE)

add_library(BVSExampleModule MODULE BVSExampleModule.cc)
target_link_libraries(BVSExampleModule bvs)

Revert "cmake: change MODULE to SHARED, so the libraries can be linked against"
Revert "cmake: change MODULE to SHARED, so the libraries can be linked against"

This reverts commit 8ce389a81c1756438da432bb4bc35af35be6d3ca.

submodules should be compiled as 'MODULE'. This ensures that they CAN'T
be linked against, decreasing the chance of later headaches due to weird
linking errors.
if one desires to use shared functionality between modules (data structs
etc.), please just put these in common headers and separate their (if
any) implementation from other code. then just include these while
compiling your module.
