2017-03-07 12:11:24 +00:00
|
|
|
#
|
|
|
|
# This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2017 CERN
|
|
|
|
# @author Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, you may find one here:
|
|
|
|
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
# or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
# or you may write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
|
2017-04-07 14:57:17 +00:00
|
|
|
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
|
2017-03-07 12:11:24 +00:00
|
|
|
find_package( wxWidgets 3.0.0 COMPONENTS gl aui adv html core net base xml stc REQUIRED )
|
|
|
|
|
2017-04-06 01:00:53 +00:00
|
|
|
add_definitions(-DBOOST_TEST_DYN_LINK)
|
|
|
|
|
2018-07-09 13:28:40 +00:00
|
|
|
add_executable( qa_shape_poly_set_refactor
|
2017-03-07 12:11:24 +00:00
|
|
|
test_module.cpp
|
2018-08-05 18:16:55 +00:00
|
|
|
test_chamfer.cpp
|
2017-03-07 12:11:24 +00:00
|
|
|
test_collision.cpp
|
|
|
|
test_iterator.cpp
|
|
|
|
test_segment.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
${CMAKE_SOURCE_DIR}/polygon
|
|
|
|
${CMAKE_SOURCE_DIR}/common/geometry
|
2017-03-25 21:46:02 +00:00
|
|
|
${Boost_INCLUDE_DIR}
|
2017-03-07 12:11:24 +00:00
|
|
|
)
|
|
|
|
|
2018-07-09 13:28:40 +00:00
|
|
|
target_link_libraries( qa_shape_poly_set_refactor
|
2017-04-06 01:00:52 +00:00
|
|
|
polygon
|
|
|
|
common
|
|
|
|
polygon
|
|
|
|
bitmaps
|
2017-03-07 12:11:24 +00:00
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2018-07-09 13:28:40 +00:00
|
|
|
add_dependencies( qa_shape_poly_set_refactor pcbnew )
|
2018-07-05 10:11:57 +00:00
|
|
|
|
2018-07-09 13:28:40 +00:00
|
|
|
add_test( NAME shape_poly_set_refactor
|
2018-08-05 18:16:55 +00:00
|
|
|
COMMAND qa_shape_poly_set_refactor
|
2018-07-09 13:28:40 +00:00
|
|
|
)
|