2016-03-08 00:48:33 +08:00
|
|
|
#############################################################################
|
2017-01-27 01:05:12 +08:00
|
|
|
## Copyright (c) 2017, Fougue Ltd. <http://www.fougue.pro>
|
2016-07-05 18:46:22 +08:00
|
|
|
## All rights reserved.
|
2016-03-08 00:48:33 +08:00
|
|
|
##
|
2016-07-05 18:46:22 +08:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted provided that the following conditions
|
|
|
|
## are met:
|
2016-03-08 00:48:33 +08:00
|
|
|
##
|
2016-07-05 18:46:22 +08:00
|
|
|
## 1. Redistributions of source code must retain the above copyright
|
|
|
|
## notice, this list of conditions and the following disclaimer.
|
|
|
|
##
|
|
|
|
## 2. Redistributions in binary form must reproduce the above
|
|
|
|
## copyright notice, this list of conditions and the following
|
|
|
|
## disclaimer in the documentation and/or other materials provided
|
|
|
|
## with the distribution.
|
|
|
|
##
|
|
|
|
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2016-03-08 00:48:33 +08:00
|
|
|
#############################################################################
|
|
|
|
|
2017-03-16 23:41:13 +08:00
|
|
|
include(../scripts/enable_cxx11.cmake)
|
|
|
|
|
2016-03-08 00:48:33 +08:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/src)
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}/src/gmio_core) # For cmake generated headers
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/tests/fake_support/opencascade)
|
2016-12-06 00:51:27 +08:00
|
|
|
link_libraries(gmio_static)
|
2016-03-08 00:48:33 +08:00
|
|
|
if(CMAKE_C_COMPILER_IS_GCC_COMPATIBLE)
|
|
|
|
link_libraries(m) # -lm
|
|
|
|
endif()
|
|
|
|
|
2016-04-15 19:05:36 +08:00
|
|
|
file(GLOB SUPPORT_STL_OCC_FILES ${CMAKE_SOURCE_DIR}/src/gmio_support/stl_occ_mesh.*)
|
2016-06-15 00:10:20 +08:00
|
|
|
set(SUPPORT_STL_OCC_FILES_FILES ${SUPPORT_STL_OCC_FILES_FILES})
|
2016-03-08 00:48:33 +08:00
|
|
|
|
|
|
|
# gmio OpenCascade/STL support
|
|
|
|
add_executable(occstl_read_file
|
|
|
|
occstl_read_file.cpp ${SUPPORT_STL_OCC_FILES})
|
|
|
|
add_executable(occstl_write_file
|
2016-03-11 17:33:13 +08:00
|
|
|
occstl_write_file.cpp ${SUPPORT_STL_OCC_FILES})
|
2016-03-08 00:48:33 +08:00
|
|
|
add_executable(occstl_redefine_mesh_creator
|
|
|
|
occstl_redefine_mesh_creator.cpp ${SUPPORT_STL_OCC_FILES})
|
|
|
|
|
|
|
|
# gmio STL
|
|
|
|
add_executable(stl_get_infos stl_get_infos.c)
|
|
|
|
add_executable(stl_read_file stl_read_file.c)
|
|
|
|
add_executable(stl_write_file stl_write_file.c)
|