File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ function(create_physiboss_target MAX_NODES)
4444 target_link_libraries (${TARGET_NAME} PUBLIC ${MABOSS_LIB_NAME} )
4545 target_compile_definitions (${TARGET_NAME} PUBLIC MAXNODES=${MAX_NODES}
4646 ADDON_PHYSIBOSS )
47+ find_package (OpenMP 4 )
48+ if (OpenMP_CXX_FOUND)
49+ target_link_libraries (${TARGET_NAME} PUBLIC OpenMP::OpenMP_CXX )
50+ endif ()
4751endfunction (create_physiboss_target )
4852
4953create_physiboss_target (64 )
Original file line number Diff line number Diff line change @@ -2,3 +2,8 @@ add_library(PhysiMeSS OBJECT)
22
33file (GLOB SOURCES "*.cpp" )
44target_sources (PhysiMeSS PRIVATE ${SOURCES} )
5+
6+ find_package (OpenMP 4 )
7+ if (OpenMP_CXX_FOUND)
8+ target_link_libraries (PhysiMeSS PUBLIC OpenMP::OpenMP_CXX )
9+ endif ()
Original file line number Diff line number Diff line change @@ -47,3 +47,8 @@ target_link_libraries(
4747 ZLIB::ZLIB
4848 LibXml2::LibXml2 )
4949target_compile_definitions (dFBA PUBLIC ADDON_PHYSIDFBA )
50+
51+ find_package (OpenMP 4 )
52+ if (OpenMP_CXX_FOUND)
53+ target_link_libraries (dFBA PUBLIC OpenMP::OpenMP_CXX )
54+ endif ()
Original file line number Diff line number Diff line change @@ -40,3 +40,8 @@ target_include_directories(libRoadrunner
4040target_link_directories (libRoadrunner PUBLIC ${roadrunner_SOURCE_DIR} /lib )
4141target_link_libraries (libRoadrunner PUBLIC roadrunner_c_api )
4242target_compile_definitions (libRoadrunner PUBLIC ADDON_ROADRUNNER )
43+
44+ find_package (OpenMP 4 )
45+ if (OpenMP_CXX_FOUND)
46+ target_link_libraries (libRoadrunner PUBLIC OpenMP::OpenMP_CXX )
47+ endif ()
Original file line number Diff line number Diff line change @@ -30,3 +30,9 @@ target_sources(
3030 PhysiCell_signal_behavior.cpp
3131 PhysiCell_standard_models.cpp
3232 PhysiCell_utilities.cpp )
33+
34+ find_package (OpenMP 4 )
35+ if (OpenMP_CXX_FOUND)
36+ target_link_libraries (PhysiCell-core PUBLIC OpenMP::OpenMP_CXX )
37+ target_link_libraries (PhysiCell-core-no-addon PUBLIC OpenMP::OpenMP_CXX )
38+ endif ()
Original file line number Diff line number Diff line change @@ -26,3 +26,9 @@ target_sources(
2626 PhysiCell_settings.cpp
2727 PhysiCell_SVG.cpp
2828 PhysiCell_various_outputs.cpp )
29+
30+ find_package (OpenMP 4 )
31+ if (OpenMP_CXX_FOUND)
32+ target_link_libraries (PhysiCell-modules PUBLIC OpenMP::OpenMP_CXX )
33+ target_link_libraries (PhysiCell-modules-no-addon PUBLIC OpenMP::OpenMP_CXX )
34+ endif ()
You can’t perform that action at this time.
0 commit comments