diff options
author | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-02-08 18:46:19 +0000 |
---|---|---|
committer | npmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56> | 2010-02-08 18:46:19 +0000 |
commit | 42b8a840be06ff8d495cbc73156b923bbb98f61d (patch) | |
tree | 2d3865909d8d6a3f6440d16e54da0ae5a8ae98fd | |
parent | 0706ecc3acd951e097d5b13c940eeed695f32a56 (diff) | |
download | libproxy-git-42b8a840be06ff8d495cbc73156b923bbb98f61d.tar.gz |
make libmodman test suite run on os x
-rw-r--r-- | libmodman/CMakeLists.txt | 3 | ||||
-rw-r--r-- | libmodman/test/main.hpp | 8 |
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_ */ |