tests: let fake_support have its own CMakeLists.txt file
This should fix compilation errors when -DGMIO_BUILD_TESTS_FAKE_SUPPORT=ON on travis CI. Currently travis cmake version is v2.8.7 and it does not support the INCLUDE_DIRECTORIES target property.
This commit is contained in:
parent
26dadf6c21
commit
c1ae2923da
@ -43,30 +43,8 @@ target_link_libraries(test_stl gmio)
|
|||||||
|
|
||||||
# fake_support
|
# fake_support
|
||||||
if(GMIO_BUILD_TESTS_FAKE_SUPPORT)
|
if(GMIO_BUILD_TESTS_FAKE_SUPPORT)
|
||||||
add_executable(
|
add_subdirectory(fake_support)
|
||||||
fake_support
|
add_dependencies(check fake_support)
|
||||||
EXCLUDE_FROM_ALL
|
|
||||||
fake_support/main.cpp
|
|
||||||
fake_support/opencascade/gp_XYZ.hxx
|
|
||||||
fake_support/opencascade/Handle_StlMesh_Mesh.hxx
|
|
||||||
fake_support/opencascade/Handle_StlMesh_MeshTriangle.hxx
|
|
||||||
fake_support/opencascade/StlMesh_Mesh.hxx
|
|
||||||
fake_support/opencascade/StlMesh_MeshTriangle.hxx
|
|
||||||
fake_support/opencascade/StlMesh_SequenceOfMeshTriangle.hxx
|
|
||||||
fake_support/opencascade/TColgp_SequenceOfXYZ.hxx
|
|
||||||
fake_support/qt/QtCore/QFile
|
|
||||||
fake_support/qt/QtCore/QIODevice
|
|
||||||
fake_support/qt/QtCore/QString
|
|
||||||
fake_support/qt/QtCore/QtGlobal
|
|
||||||
../src/gmio_support/stl_occ.cpp
|
|
||||||
../src/gmio_support/stream_qt.cpp)
|
|
||||||
target_link_libraries(test_stl gmio)
|
|
||||||
set_property(
|
|
||||||
TARGET fake_support
|
|
||||||
APPEND PROPERTY INCLUDE_DIRECTORIES
|
|
||||||
${CMAKE_SOURCE_DIR}/src
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/fake_support/opencascade
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/fake_support/qt)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# For some targets, GCC and Clang requires -lm
|
# For some targets, GCC and Clang requires -lm
|
||||||
@ -84,5 +62,4 @@ add_dependencies(
|
|||||||
check
|
check
|
||||||
test_internal
|
test_internal
|
||||||
test_platform
|
test_platform
|
||||||
test_stl
|
test_stl)
|
||||||
fake_support)
|
|
||||||
|
37
tests/fake_support/CMakeLists.txt
Normal file
37
tests/fake_support/CMakeLists.txt
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#############################################################################
|
||||||
|
## gmio
|
||||||
|
## Copyright Fougue (2 Mar. 2015)
|
||||||
|
## contact@fougue.pro
|
||||||
|
##
|
||||||
|
## This software is a reusable library whose purpose is to provide complete
|
||||||
|
## I/O support for various CAD file formats (eg. STL)
|
||||||
|
##
|
||||||
|
## This software is governed by the CeCILL-B license under French law and
|
||||||
|
## abiding by the rules of distribution of free software. You can use,
|
||||||
|
## modify and/ or redistribute the software under the terms of the CeCILL-B
|
||||||
|
## license as circulated by CEA, CNRS and INRIA at the following URL
|
||||||
|
## "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html".
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
add_executable(
|
||||||
|
fake_support
|
||||||
|
EXCLUDE_FROM_ALL
|
||||||
|
main.cpp
|
||||||
|
opencascade/gp_XYZ.hxx
|
||||||
|
opencascade/Handle_StlMesh_Mesh.hxx
|
||||||
|
opencascade/Handle_StlMesh_MeshTriangle.hxx
|
||||||
|
opencascade/StlMesh_Mesh.hxx
|
||||||
|
opencascade/StlMesh_MeshTriangle.hxx
|
||||||
|
opencascade/StlMesh_SequenceOfMeshTriangle.hxx
|
||||||
|
opencascade/TColgp_SequenceOfXYZ.hxx
|
||||||
|
qt/QtCore/QFile
|
||||||
|
qt/QtCore/QIODevice
|
||||||
|
qt/QtCore/QString
|
||||||
|
qt/QtCore/QtGlobal
|
||||||
|
../../src/gmio_support/stl_occ.cpp
|
||||||
|
../../src/gmio_support/stream_qt.cpp)
|
||||||
|
link_libraries(gmio)
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/opencascade
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/qt)
|
Loading…
Reference in New Issue
Block a user