代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 2.8.12)
project(cork)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_library(cork STATIC
src/file_formats/files.cpp
src/file_formats/ifs.cpp
src/file_formats/off.cpp
src/isct/empty3d.cpp
src/isct/quantization.cpp
src/isct/triangle.c
src/util/log.cpp
src/util/timer.cpp
src/cork.cpp)
add_executable(cork-bin src/main.cpp)
set(INCLUDEDIRS
src/mesh
src/accel/
src/file_formats/
src/isct/
src/math/
src/mesh/
src/rawmesh/
src/util/
)
if(UNIX)
target_compile_options(cork PRIVATE -fPIC -fvisibility=hidden)
endif(UNIX)
target_include_directories(cork PRIVATE ${INCLUDEDIRS})
target_include_directories(cork-bin PRIVATE ${INCLUDEDIRS})
SET_TARGET_PROPERTIES(cork-bin PROPERTIES OUTPUT_NAME cork)
IF (NOT GMP_FOUND)
find_package(GMP REQUIRED)
ENDIF (NOT GMP_FOUND)
include_directories(${GMP_INCLUDE_DIRS})
target_link_libraries(cork-bin PRIVATE cork ${GMP_LIBRARIES})
target_compile_definitions(cork PRIVATE
-DNO_TIMER -DREDUCED -DTRILIBRARY -DANSI_DECLARATORS )
INSTALL(TARGETS cork
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL(FILES src/cork.h DESTINATION include)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。