You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. if (UNICODE)
  2. add_definitions (-DUNICODE -D_UNICODE -UMBCS -U_MBCS)
  3. endif (UNICODE)
  4. if (${BUILD_SHARED_LIBS})
  5. add_definitions (-Dlog4cplus_EXPORTS)
  6. endif ()
  7. # a function to set up a test, since it's the same for each one:
  8. function(log4cplus_add_test _name)
  9. set(_srcs ${ARGN})
  10. # message (STATUS "${_name} sources: ${_srcs}")
  11. add_executable (${_name} ${_srcs})
  12. target_link_libraries (${_name} ${log4cplus})
  13. add_test(NAME ${_name} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COMMAND ${_name})
  14. endfunction()
  15. add_subdirectory (appender_test)
  16. add_subdirectory (configandwatch_test)
  17. add_subdirectory (customloglevel_test)
  18. add_subdirectory (fileappender_test)
  19. add_subdirectory (filter_test)
  20. add_subdirectory (hierarchy_test)
  21. add_subdirectory (loglog_test)
  22. add_subdirectory (ndc_test)
  23. add_subdirectory (ostream_test)
  24. add_subdirectory (patternlayout_test)
  25. add_subdirectory (performance_test)
  26. add_subdirectory (priority_test)
  27. add_subdirectory (propertyconfig_test)
  28. #add_subdirectory (socket_test) # I don't know how this test is supposed to be executed
  29. add_subdirectory (thread_test)
  30. add_subdirectory (timeformat_test)