|
1 |
| -cmake_minimum_required(VERSION 3.9) |
| 1 | +cmake_minimum_required(VERSION 3.8) |
2 | 2 | project(fish_deformation)
|
3 | 3 |
|
4 | 4 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
@@ -107,30 +107,16 @@ target_include_directories(quartet PUBLIC ${QUARTET_INCLUDE_DIRS})
|
107 | 107 |
|
108 | 108 |
|
109 | 109 | # ContourTree static library
|
110 |
| -find_package(OpenMP REQUIRED) |
111 |
| -if(NOT TARGET OpenMP::OpenMP_CXX) |
112 |
| - add_library(OpenMP_TARGET INTERFACE) |
113 |
| - add_library(OpenMP::OpenMP_CXX ALIAS OpenMP_TARGET) |
114 |
| - target_compile_options(OpenMP_TARGET INTERFACE ${OpenMP_CXX_FLAGS}) |
115 |
| - find_package(Threads REQUIRED) |
116 |
| - target_link_libraries(OpenMP_TARGET INTERFACE Threads::Threads) |
117 |
| - target_link_libraries(OpenMP_TARGET INTERFACE ${OpenMP_CXX_FLAGS}) |
118 |
| -endif() |
119 | 110 | file(GLOB CT_SRCS external/Segmentangling/ContourTree/*.cpp)
|
120 | 111 | set(CT_INCLUDE_DIRS external/Segmentangling/ContourTree)
|
121 | 112 | list(REMOVE_ITEM CT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/external/Segmentangling/ContourTree/main.cpp")
|
122 |
| -# if (APPLE) |
123 |
| -# list(REMOVE_ITEM CT_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/external/Segmentangling/ContourTree/MergeTree.cpp") |
124 |
| -# endif () |
125 | 113 | add_library(contourtree STATIC ${CT_SRCS})
|
126 |
| -# if (NOT APPLE) |
127 |
| -# target_compile_options(contourtree PRIVATE "-fopenmp") |
128 |
| -# target_link_libraries(contourtree Qt5::Core Qt5::Widgets -fopenmp spdlog) |
129 |
| -# else () |
130 |
| -# target_link_libraries(contourtree Qt5::Core Qt5::Widgets spdlog) |
131 |
| -# endif () |
132 |
| -target_compile_options(contourtree PRIVATE "-fopenmp") |
133 |
| -target_link_libraries(contourtree Qt5::Core Qt5::Widgets -fopenmp spdlog OpenMP::OpenMP_CXX) |
| 114 | +if (NOT APPLE) |
| 115 | + target_compile_options(contourtree PRIVATE "-fopenmp") |
| 116 | + target_link_libraries(contourtree Qt5::Core Qt5::Widgets -fopenmp spdlog) |
| 117 | +else () |
| 118 | + target_link_libraries(contourtree Qt5::Core Qt5::Widgets spdlog) |
| 119 | +endif () |
134 | 120 | target_include_directories(contourtree PUBLIC ${CT_INCLUDE_DIRS})
|
135 | 121 | target_compile_definitions(contourtree PUBLIC CONTOUR_TREE_USE_SPDLOG)
|
136 | 122 |
|
|
0 commit comments