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.

89 lines
2.6 KiB

  1. #
  2. # This program source code file is part of KiCad, a free EDA CAD application.
  3. #
  4. # Copyright (C) 2017 CERN
  5. # @author Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU General Public License
  9. # as published by the Free Software Foundation; either version 2
  10. # of the License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, you may find one here:
  19. # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  20. # or you may search the http://www.gnu.org website for the version 2 license,
  21. # or you may write to the Free Software Foundation, Inc.,
  22. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  23. find_package(Boost COMPONENTS unit_test_framework REQUIRED)
  24. find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc REQUIRED )
  25. add_definitions(-DBOOST_TEST_DYN_LINK -DPCBNEW)
  26. if( BUILD_GITHUB_PLUGIN )
  27. set( GITHUB_PLUGIN_LIBRARIES github_plugin )
  28. endif()
  29. add_dependencies( pnsrouter pcbcommon pcad2kicadpcb ${GITHUB_PLUGIN_LIBRARIES} )
  30. add_executable(test_window WIN32
  31. test.cpp
  32. ../qa_utils/pcb_test_frame.cpp
  33. ../qa_utils/mocks.cpp
  34. ../../common/base_units.cpp
  35. ../../pcbnew/tools/pcb_tool.cpp
  36. ../../pcbnew/tools/selection.cpp
  37. ../../pcbnew/tools/selection_tool.cpp
  38. ../../pcbnew/tools/tool_event_utils.cpp
  39. #../../pcbnew/tools/outline_editor.cpp
  40. )
  41. include_directories( BEFORE ${INC_BEFORE} )
  42. include_directories(
  43. ${CMAKE_SOURCE_DIR}
  44. ${CMAKE_SOURCE_DIR}/include
  45. ${CMAKE_SOURCE_DIR}/3d-viewer
  46. ${CMAKE_SOURCE_DIR}/common
  47. ${CMAKE_SOURCE_DIR}/pcbnew
  48. ${CMAKE_SOURCE_DIR}/pcbnew/router
  49. ${CMAKE_SOURCE_DIR}/pcbnew/tools
  50. ${CMAKE_SOURCE_DIR}/pcbnew/dialogs
  51. ${CMAKE_SOURCE_DIR}/common/geometry
  52. ${CMAKE_SOURCE_DIR}/qa/qa_utils
  53. ${Boost_INCLUDE_DIR}
  54. ${INC_AFTER}
  55. )
  56. target_link_libraries( test_window
  57. pnsrouter
  58. common
  59. pcbcommon
  60. pnsrouter
  61. common
  62. pcbcommon
  63. pnsrouter
  64. common
  65. pcbcommon
  66. pnsrouter
  67. common
  68. pcbcommon
  69. 3d-viewer
  70. gal
  71. pcad2kicadpcb
  72. common
  73. pcbcommon
  74. ${GITHUB_PLUGIN_LIBRARIES}
  75. common
  76. pcbcommon
  77. ${Boost_FILESYSTEM_LIBRARY}
  78. ${Boost_SYSTEM_LIBRARY}
  79. ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
  80. ${wxWidgets_LIBRARIES}
  81. )