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.

50 lines
1.7 KiB

  1. # This program source code file is part of KiCad, a free EDA CAD application.
  2. #
  3. # Copyright (C) 2018 KiCad Developers, see CHANGELOG.TXT for contributors.
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of the GNU General Public License
  7. # as published by the Free Software Foundation; either version 2
  8. # of the License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, you may find one here:
  17. # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  18. # or you may search the http://www.gnu.org website for the version 2 license,
  19. # or you may write to the Free Software Foundation, Inc.,
  20. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  21. # The unit_test_utils library is a simple helper library to collate
  22. # utilities that are generically useful for unit test executables.
  23. #
  24. # Code that is useful for QA purposes outside of the unit-testing context
  25. # belongs in qa_utils.
  26. find_package( Boost COMPONENTS unit_test_framework filesystem system REQUIRED )
  27. set( SRCS
  28. unit_test_utils.cpp
  29. wx_assert.cpp
  30. )
  31. add_library( unit_test_utils STATIC ${SRCS} )
  32. target_link_libraries( unit_test_utils PUBLIC
  33. ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
  34. ${Boost_FILESYSTEM_LIBRARY}
  35. ${Boost_SYSTEM_LIBRARY}
  36. ${wxWidgets_LIBRARIES}
  37. )
  38. target_include_directories( unit_test_utils PUBLIC
  39. include
  40. )
  41. target_compile_definitions( unit_test_utils PUBLIC
  42. BOOST_TEST_DYN_LINK
  43. )