[Dune] Problem linking one module to another as a library with cmake
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Wed Nov 26 17:36:47 CET 2014
Dear Dune,
I wish to create an executable for my test. For that I write the
following lines in
dune-curvilineargrid/dune/curvilineargrid/io/file/test/CMakeLists.txt
add_executable(curvilineargmshtest curvilineargmshtest.cc)
target_link_libraries(curvilineargmshtest dunecommon dunegeometry
dunecurvilineargeometry dunegrid)
So now the test compiles correctly, however, upon linking it throws
Linking CXX executable curvilineargmshtest
/usr/bin/ld: cannot find -ldunecurvilineargeometry
Should I not be specifying the curvilineargeometry as a library? Or if I
should, should I make sure it is a library somehow?
Sorry for the swarm of problems today, hope it calms down soon.
Aleksejs
-------------- next part --------------
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
--- going to build dune-curvilineargrid ---
--- calling all for dune-curvilineargrid ---
--- calling vcsetup for dune-curvilineargrid ---
--- calling autogen for dune-curvilineargrid ---
Skipping dune-autogen because of CMake
--- calling configure for dune-curvilineargrid ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/lib/dunegeometryam2cmake.lib for converting options does not exist
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/lib/dunecurvilineargeometryam2cmake.lib for converting options does not exist
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/lib/dunecurvilineargridam2cmake.lib for converting options does not exist
CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH="" -DUSE_MPI=ON "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" "-Ddune-geometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake" "-Ddune-curvilineargeometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/build-cmake" -DENABLE_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "-Ddune-grid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-grid/build-cmake" "-Ddune-alugrid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/build-cmake" CXXFLAGS="-Wall -pedantic -O0 -g2" -DPARMETIS_ROOT=/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0 -DCMAKE_PREFIX_PATH="/opt/extlib/boost/1.55.0/gcc/4.9.0;/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid"
-- Dependencies for dune-curvilineargrid: dune-common;dune-geometry;dune-curvilineargeometry;dune-grid;dune-alugrid
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-curvilineargeometry: dune-common;dune-geometry
-- Dependencies for dune-grid: dune-common (>= 2.4);dune-geometry (>= 2.4)
-- Dependencies for dune-alugrid: dune-grid (>= 2.3)
-- Dependencies for dune-grid: dune-common (>= 2.4);dune-geometry (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing: GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS)
-- Setting dune-common_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-- Setting dune-common_LIBRARIES=dunecommon
-- Setting dune-geometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry
-- Setting dune-geometry_LIBRARIES=dunegeometry
-- Performing tests specific to dune-grid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/DuneGridMacros.cmake.
-- checking for module 'alugrid'
-- package 'alugrid' not found
-- checking for module 'alugrid'
-- package 'alugrid' not found
-- Could NOT find ALUGrid (missing: ALUGRID_VERSION ALUGRID_INCLUDE_PATH ALUGRID_LIB ALUGRID_LIB_PATH ALULIB_FUNCTIONAL HAVE_ALUGRID_SERIAL_H)
CMake Warning at /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/UseUG.cmake:27 (find_package):
Could not find a package configuration file provided by "UG" (requested
version 3.11.0) with any of the following names:
UGConfig.cmake
ug-config.cmake
Add the installation prefix of "UG" to CMAKE_PREFIX_PATH or set "UG_DIR" to
a directory containing one of the above files. If "UG" provides a separate
development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/DuneGridMacros.cmake:11 (include)
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:505 (include)
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:634 (dune_process_dependency_macros)
CMakeLists.txt:24 (dune_project)
-- Could NOT find UG (missing: UG_DIR HAVE_UG)
-- Could NOT find Grape (missing: GRAPE_INCLUDE_DIR GRAPE_LIBRARY _GRAPE_LIB_FUNCTIONAL _GRAPE_HEADER_USABLE)
-- checking for one of the modules 'psurface'
-- checking for module 'psurface'
-- package 'psurface' not found
-- Could NOT find psurface (missing: PSURFACE_INCLUDE_DIR PSURFACE_LIBRARY)
-- Could NOT find AmiraMesh (missing: AMIRAMESH_INCLUDE_DIR AMIRAMESH_LIBRARY)
-- Setting dune-grid_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-grid
-- Setting dune-grid_LIBRARIES=dunegrid
-- Performing tests specific to dune-alugrid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/cmake/modules/DuneAlugridMacros.cmake.
-- Could NOT find SIONlib (missing: SIONLIB_INCLUDE_DIR SIONLIB_LIBRARY SIONLIB_HEADER_USABLE SIONLIB_LIB_WORKS SIONLIB_LIB_SIONSER_WORKS)
-- Could NOT find DLMalloc (missing: DLMALLOC_INCLUDE_DIR DLMALLOC_SOURCE_USABLE)
Zoltan Dir: ZOLTAN_INCLUDE_DIR-NOTFOUND
-- Could NOT find ZOLTAN (missing: ZOLTAN_INCLUDE_DIR ZOLTAN_LIBRARY ZOLTAN_HEADER_USABLE)
CMake Warning (dev) at /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/cmake/modules/DuneAlugridMacros.cmake:49 (message):
TODO: Improve module test.
Call Stack (most recent call first):
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:505 (include)
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:634 (dune_process_dependency_macros)
CMakeLists.txt:24 (dune_project)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Setting dune-alugrid_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid
-- Setting dune-alugrid_LIBRARIES=dunealugrid
-- Performing tests specific to dune-curvilineargeometry from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometryMacros.cmake.
-- Setting dune-curvilineargeometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry
-- Performing tests specific to dune-curvilineargrid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/cmake/modules/DuneCurvilineargridMacros.cmake.
-- Using scripts from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/scripts for creating doxygen stuff.
-- Adding custom target for config.h generation
--
-- The following features have been enabled:
* Experimental grid extensions , Enables additional grid features.
-- The following OPTIONAL packages have been found:
* MPI
* PkgConfig
* BLAS
* Threads
* LAPACK
* Inkscape
* X11
* OpenGL
* ZLIB
* ParMETIS
-- The following REQUIRED packages have been found:
* dune-common
* dune-geometry
* dune-curvilineargeometry
* dune-grid
* dune-alugrid
-- The following OPTIONAL packages have not been found:
* LATEX
* UnixCommands
* Doxygen
* GMP
* ALUGrid
* Alberta
* UG (required version >= 3.11.0)
* Grape
* Psurface
* AmiraMesh
* SIONlib
* DLMalloc
* ZOLTAN
-- Configuring done
-- Generating done
-- Build files have been written to: /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake
--- calling make for dune-curvilineargrid ---
build directory: build-cmake
make
[ 50%] Built target dune_curvilineargrid
Scanning dependencies of target curvilineargmshtest
[100%] Building CXX object dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/curvilineargmshtest.cc.o
In file included from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpicollectivecommunication.hh:24:0,
from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpihelper.hh:10,
from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:36:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh: In static member function ‘static ompi_datatype_t* Dune::MPITraits<Dune::FieldVector<K, n> >::getType()’:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:99:9: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&fvector, &base);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:100:9: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&(fvector[0]), &displ);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:104:9: warning: ‘int MPI_Type_struct(int, int*, MPI_Aint*, ompi_datatype_t**, ompi_datatype_t**)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1787): MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0 [-Wdeprecated-declarations]
MPI_Type_struct(1, length, &displ, &vectortype, &datatype);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh: In static member function ‘static ompi_datatype_t* Dune::MPITraits<Dune::bigunsignedint<k> >::getType()’:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:136:9: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&data, &base);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:137:9: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&(data.digit), &displ);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:140:9: warning: ‘int MPI_Type_struct(int, int*, MPI_Aint*, ompi_datatype_t**, ompi_datatype_t**)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1787): MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0 [-Wdeprecated-declarations]
MPI_Type_struct(1, length, &displ, &vectortype, &datatype);
^
In file included from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpihelper.hh:9:0,
from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:36:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh: In static member function ‘static ompi_datatype_t* Dune::MPITraits<std::pair<_T1, _T2> >::getType()’:
/home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1061:53: warning: ‘ompi_mpi_lb’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:909): MPI_LB is deprecated in MPI-2.0 [-Wdeprecated-declarations]
#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb)
^
/home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:308:66: note: in definition of macro ‘OMPI_PREDEFINED_GLOBAL’
#define OMPI_PREDEFINED_GLOBAL(type, global) ((type) ((void *) &(global)))
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:169:32: note: in expansion of macro ‘MPI_LB’
MPI_Datatype types[4] = {MPI_LB, MPITraits<T1>::getType(),
^
/home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1060:53: warning: ‘ompi_mpi_ub’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:910): MPI_UB is deprecated in MPI-2.0 [-Wdeprecated-declarations]
#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub)
^
/home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:308:66: note: in definition of macro ‘OMPI_PREDEFINED_GLOBAL’
#define OMPI_PREDEFINED_GLOBAL(type, global) ((type) ((void *) &(global)))
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:170:58: note: in expansion of macro ‘MPI_UB’
MPITraits<T2>::getType(), MPI_UB};
^
In file included from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpicollectivecommunication.hh:24:0,
from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpihelper.hh:10,
from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:36:
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:173:7: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(rep, disp); // lower bound of the datatype
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:174:7: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&(rep[0].first), disp+1);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:175:7: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(&(rep[0].second), disp+2);
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:176:7: warning: ‘int MPI_Address(void*, MPI_Aint*)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1178): MPI_Address is superseded by MPI_Get_address in MPI-2.0 [-Wdeprecated-declarations]
MPI_Address(rep+1, disp+3); // upper bound of the datatype
^
/home/fomins/gitwork/hades-github-lspr-ag/dune-common/dune/common/parallel/mpitraits.hh:179:7: warning: ‘int MPI_Type_struct(int, int*, MPI_Aint*, ompi_datatype_t**, ompi_datatype_t**)’ is deprecated (declared at /home/fomins/extlib/openmpi/1.8.1/gcc/4.9.0/include/mpi.h:1787): MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0 [-Wdeprecated-declarations]
MPI_Type_struct(4, length, disp, types, &type);
^
In file included from /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:43:0:
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh: In instantiation of ‘bool Dune::CurvilinearGmshReaderParser<GridType>::gmshElementIsIncomplete(int) [with GridType = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>]’:
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:263:63: required from ‘bool Dune::CurvilinearGmshReaderParser<GridType>::checkElementAllowed(int) [with GridType = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>]’
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:621:59: required from ‘void Dune::CurvilinearGmshReaderParser<GridType>::readAndPartitionBaseElements(FILE*, int, int, std::set<int>&) [with GridType = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; FILE = _IO_FILE]’
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:1240:108: required from ‘void Dune::CurvilinearGmshReaderParser<GridType>::read(const string&) [with GridType = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; std::string = std::basic_string<char>]’
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:1460:11: required from ‘static void Dune::CurvilinearGmshReader<GridType>::read(Dune::CurvilinearGridFactory<GridType>&, const string&, Dune::MPIHelper&, std::vector<int>&, std::vector<int>&, bool, bool) [with GridType = Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>; std::string = std::basic_string<char>]’
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/test/curvilineargmshtest.cc:157:65: required from here
/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/dune/curvilineargrid/io/file/curvilineargmshreader.hh:171:146: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘const bool’ inside { } [-Wnarrowing]
const bool elemIncomplete[32] = {-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0};
^
Linking CXX executable curvilineargmshtest
/usr/bin/ld: cannot find -ldunecurvilineargeometry
collect2: error: ld returned 1 exit status
make[2]: *** [dune/curvilineargrid/io/file/test/curvilineargmshtest] Error 1
make[1]: *** [dune/curvilineargrid/io/file/test/CMakeFiles/curvilineargmshtest.dir/all] Error 2
make: *** [all] Error 2
--- Failed to build dune-curvilineargrid ---
Terminating dunecontrol due to previous errors!
-------------- next part --------------
#################################################################################################################
## objective - opts file for building vulcain, based on Dune, with cmake
##
## history - 2014 apr 16, created
##
## usage - time ./dune-common/bin/dunecontrol --use-cmake --opts=af.debian7.lsprag.cmakebuild.minimalistic.opts all
##
##################################################################################################################
USE_CMAKE=yes
CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions CC=mpicc CXX=mpicxx"
CMAKE_PREFIX_PATH="\
/opt/extlib/boost/1.55.0/gcc/4.9.0;\
/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;\
/opt/extlib/metis/5.1.0/gcc/4.9.0;\
"
GXX_WARNING_OPTS="-Wall -pedantic"
GXX_OPTS="-O0 -g2"
CMAKE_FLAGS="\
CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS\" \
-DPARMETIS_ROOT="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0" \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
"
# -DCXXFLAGS=\"-O2 -Wall\" \
-------------- next part --------------
# Define variable with path to the grids to be used in the code
add_definitions("-DDUNE_CURVILINEARGRID_EXAMPLE_GRIDS_PATH=\"${PROJECT_SOURCE_DIR}/doc/grids/\"")
# Define tests to be run
set(TESTS
curvilineargmshtest)
add_executable(curvilineargmshtest curvilineargmshtest.cc)
target_link_libraries(curvilineargmshtest dunecommon dunegeometry dunecurvilineargeometry dunegrid)
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})
foreach(_test ${TESTS})
add_test(${_test} ${_test})
endforeach(_test ${TESTS})
# Add parmetis
if(HAVE_MPI)
add_dune_parmetis_flags(curvilineargmshtest)
endif(HAVE_MPI)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141126/05c2a553/attachment.sig>
More information about the Dune
mailing list