I noticed there is a quite recent experimental CMakeLists.txt available.
I tried this on Ubuntu 13.10, and I found I need at least two changes (manual "diff" below, sorry...).
matc/src/CMakeLists.txt
ADD_LIBRARY(matc SHARED ${matc_SRCS})
+ TARGET_LINK_LIBRARIES(matc m)
and
fem/src/CMakeLists.txt
(somewhere towards the end of the file)
+ find_package ( MPI )
+ if ( MPI_FOUND )
+ include_directories( ${MPI_INCLUDE_PATH} )
+ endif( MPI_FOUND )
with these changes the cmake-build runs without major errors for me.
As noted in the root CMakeLists.txt the build is quite limited for now and doesn't have ElmerGUI etc.
Anyway good work so far, I would encourage the authors to continue! Build and install should definitely be as simple as:
mkdir bld
cd bld
cmake ..
make
sudo make install
CMake build (r6396)
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: CMake build (r6396)
Hi
Thank you for your feedback! I'll make sure to get this to Sami who has been working on this topic with good help from the community.
Note that ElmerGUI is already compiled by cmake. In fact for that we never had any other options.
-Peter
Thank you for your feedback! I'll make sure to get this to Sami who has been working on this topic with good help from the community.
Note that ElmerGUI is already compiled by cmake. In fact for that we never had any other options.
-Peter