Browse Source

Add ifdef wrapper for CppUnit

Renato Golin 13 years ago
parent
commit
249dffc3c4
2 changed files with 6 additions and 0 deletions
  1. 4 0
      testing/unittests/CMakeLists.txt
  2. 2 0
      testing/unittests/unittests.cpp

+ 4 - 0
testing/unittests/CMakeLists.txt

@@ -23,6 +23,8 @@
 #    Cmake Input File for unittests
 #####################################################
 
+if (USE_CPPUNIT)
+
 project( unitests )
 
 set (    SRCS
@@ -47,3 +49,5 @@ target_link_libraries ( unittests
          remote
          cppunit
     )
+
+endif ()

+ 2 - 0
testing/unittests/unittests.cpp

@@ -16,6 +16,7 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ############################################################################## */
 
+#ifdef _USE_CPPUNIT
 #include "platform.h"
 #include "jlib.hpp"
 #include "jlog.hpp"
@@ -101,3 +102,4 @@ int main(int argc, char* argv[])
     return wasSucessful;
 }
 
+#endif // _USE_CPPUNIT