Integration of gauss map, osculating toroidal patches, loop detection and C2 judgement to figure out the singular or loop intersection.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB

2 years ago
cmake_minimum_required(VERSION 3.21)
project(SingularityJudger)
set(CMAKE_CXX_STANDARD 17)
2 years ago
include_directories(include)
# 引入glm tinynurbs依赖
include_directories(E:/CLib/tinynurbs/include E:/CLib/glm E:/CLib/eigen-3.4.0)
2 years ago
# SET(QT_DIR "D:/download/Qt/6.8.1/msvc2022_64/lib/cmake/Qt6")
set(CMAKE_PREFIX_PATH "D:/download/Qt/6.8.1/msvc2022_64/lib/cmake")
# find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt6 REQUIRED COMPONENTS Core)
2 years ago
AUX_SOURCE_DIRECTORY(src DIR_SRCS)
AUX_SOURCE_DIRECTORY(include DIR_INCLUDE)
2 years ago
# 生成可执行文件
add_executable(SingularityJudger main.cpp ${DIR_SRCS})
2 years ago
# 生成静态库
#set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
#add_library(SingularityJudger ${DIR_SRCS})
# 将intersectTest的内容拷贝到build文件夹下
# 参考https://stackoverflow.com/questions/13429656/how-to-copy-contents-of-a-directory-into-build-directory-after-make-with-cmake
add_custom_command(TARGET SingularityJudger PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/intersectTest/ $<TARGET_FILE_DIR:SingularityJudger>/intersectTest)
target_link_libraries(SingularityJudger PRIVATE Qt6::Core)