Hello everyone,
I have one problem when I tried to add openmp lib to CMakeLists.txt to use
parallel functionality.
May I know how I could add openmp lib?
And one more question,I wrote two code files which are called gcmma and
mma,may I know how could I add these two files in this CMakeLists as well?
I tried to find the lib and add them in this txt file,but the error still
exists.
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SET(CLEAN_UP_FILES
# a custom list of globs, e.g. *.log *.vtk
*.vtk
)
# Usually, you will not need to modify anything beyond this point...
CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0)
include_directories(/usr/include/trilinos)
include_directories(/usr/lib/x86_64-linux-gnu/openmpi/include)
include_directories(/usr/include/suitesparse)
include_directories(/usr/lib/petscdir/petsc3.15/x86_64-linux-gnu-real/include)
add_library(mma_gcmma OBJECT gcmma/GCMMASolver.cpp)
add_library(mma_mma OBJECT mma/MMASolver.cpp)
# find Eigen
find_package(Eigen3 REQUIRED)
# include Eigen
include_directories(${EIGEN3_INCLUDE_DIR})
#find_package(OpenMP REQUIRED)
#target_link_libraries(cook_membrane PUBLIC OpenMP::OpenMP_CXX)
FIND_PACKAGE(deal.II 9.3.0 QUIET
HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
)
IF(NOT ${deal.II_FOUND})
MESSAGE(FATAL_ERROR "\n"
"*** Could not locate deal.II. ***\n\n"
"You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to
cmake\n"
"or set an environment variable \"DEAL_II_DIR\" that contains this
path."
)
ENDIF()
#target_link_libraries(cook_membrane mma_gcmma mma_mma ${DEAL_II_LIBRARIES})
DEAL_II_INITIALIZE_CACHED_VARIABLES()
PROJECT(${TARGET})
DEAL_II_INVOKE_AUTOPILOT()
SET(CLEAN_UP_FILES *.log *.gmv *.gnuplot *.gpl *.eps *.pov *.ucd *.d2 *.vtu
*.pvtu)
MESSAGE(STATUS "deal.II_DIR: ${deal.II_DIR}")
MESSAGE(STATUS "DEAL_II_DIR: ${DEAL_II_DIR}")
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Could anyone provide any hint or suggestions?
Thanks
Best regards
Lance
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/5f9f021d-6dbb-47e6-84d6-bd9542146da1n%40googlegroups.com.