2015-09-08 23:57:59 +08:00
|
|
|
#############################################################################
|
|
|
|
## 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".
|
|
|
|
#############################################################################
|
|
|
|
|
2016-04-25 23:16:26 +08:00
|
|
|
file(GLOB GMIO_FAKEOCC_HEADERS opencascade/*.hxx opencascade/*.h)
|
|
|
|
set(GMIO_FAKEOCC_HEADERS ${GMIO_FAKEOCC_HEADERS})
|
|
|
|
|
2015-09-08 23:57:59 +08:00
|
|
|
add_executable(
|
|
|
|
fake_support
|
|
|
|
EXCLUDE_FROM_ALL
|
|
|
|
main.cpp
|
2016-04-25 23:16:26 +08:00
|
|
|
${GMIO_FAKEOCC_HEADERS}
|
2015-09-08 23:57:59 +08:00
|
|
|
qt/QtCore/QFile
|
|
|
|
qt/QtCore/QIODevice
|
|
|
|
qt/QtCore/QString
|
|
|
|
qt/QtCore/QtGlobal
|
2016-04-15 18:37:05 +08:00
|
|
|
../../src/gmio_support/stl_occ_mesh.cpp
|
|
|
|
../../src/gmio_support/stl_occ_meshvs.cpp
|
2016-04-25 23:16:26 +08:00
|
|
|
../../src/gmio_support/stl_occ_brep.cpp
|
2015-09-08 23:57:59 +08:00
|
|
|
../../src/gmio_support/stream_qt.cpp)
|
2015-09-21 21:58:44 +08:00
|
|
|
target_link_libraries(fake_support gmio)
|
2015-09-08 23:57:59 +08:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/src
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/opencascade
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qt)
|
2016-06-15 00:10:20 +08:00
|
|
|
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
set_target_properties(
|
|
|
|
fake_support
|
|
|
|
PROPERTIES COMPILE_FLAGS "-std=c++0x")
|
|
|
|
endif()
|