summaryrefslogtreecommitdiff
path: root/libmodman
diff options
context:
space:
mode:
Diffstat (limited to 'libmodman')
-rw-r--r--libmodman/CMakeLists.txt3
-rw-r--r--libmodman/test/main.hpp8
2 files changed, 6 insertions, 5 deletions
diff --git a/libmodman/CMakeLists.txt b/libmodman/CMakeLists.txt
index 61acab6..0eacae0 100644
--- a/libmodman/CMakeLists.txt
+++ b/libmodman/CMakeLists.txt
@@ -14,6 +14,7 @@ function(mm_create_module MODTYPE MODNAME MODCOND MODSYMB)
endif()
add_library(test/modules/${MODTYPE}/${MODNAME} MODULE test/${MODTYPE}_${MODNAME}.cpp)
set_target_properties(test/modules/${MODTYPE}/${MODNAME} PROPERTIES PREFIX "")
+ target_link_libraries(test/modules/${MODTYPE}/${MODNAME} libmodman)
endfunction(mm_create_module)
function(mm_create_program name EXTTYPE)
@@ -52,4 +53,4 @@ mm_create_test(sorted sorted sorted two one)
mm_create_test(symbol symbolz symbol two)
mm_create_test(nosymbol symbol symbol)
mm_create_test(nosymreq symbol symbol one)
-endif(UNIX) \ No newline at end of file
+endif(UNIX)
diff --git a/libmodman/test/main.hpp b/libmodman/test/main.hpp
index 9bc8cfc..357e5d6 100644
--- a/libmodman/test/main.hpp
+++ b/libmodman/test/main.hpp
@@ -25,19 +25,19 @@
using namespace std;
using namespace libmodman;
-class singleton_extension : public extension<singleton_extension> {
+class __MM_DLL_EXPORT singleton_extension : public extension<singleton_extension> {
public:
static bool singleton() { return true; }
};
-class sorted_extension : public extension<sorted_extension> {
+class __MM_DLL_EXPORT sorted_extension : public extension<sorted_extension> {
public:
virtual bool operator<(const base_extension& other) const {
return string(typeid(*this).name()) > string(typeid(other).name());
}
};
-class symbol_extension : public extension<symbol_extension> {};
-class condition_extension : public extension<condition_extension> {};
+class __MM_DLL_EXPORT symbol_extension : public extension<symbol_extension> {};
+class __MM_DLL_EXPORT condition_extension : public extension<condition_extension> {};
#endif /* MAIN_HPP_ */