Skip to content

Commit d6be11f

Browse files
committed
Addendum 8
1 parent b0863f0 commit d6be11f

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

CMakeLists.txt

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9)
1+
cmake_minimum_required(VERSION 3.8)
22
project(fish_deformation)
33

44
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@@ -107,30 +107,16 @@ target_include_directories(quartet PUBLIC ${QUARTET_INCLUDE_DIRS})
107107

108108

109109
# 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()
119110
file(GLOB CT_SRCS external/Segmentangling/ContourTree/*.cpp)
120111
set(CT_INCLUDE_DIRS external/Segmentangling/ContourTree)
121112
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 ()
125113
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 ()
134120
target_include_directories(contourtree PUBLIC ${CT_INCLUDE_DIRS})
135121
target_compile_definitions(contourtree PUBLIC CONTOUR_TREE_USE_SPDLOG)
136122

0 commit comments

Comments
 (0)