Skip to content
Snippets Groups Projects
Commit 5d192145 authored by Johannes Heinecke's avatar Johannes Heinecke
Browse files

modifs to run cmake correctly on Ubuntu 14.04 as well, documentation

parent c2c88291
No related branches found
No related tags found
1 merge request!6Johannes: modif of cmake configuration to be able to compile on Ubuntu 14.04
......@@ -4,13 +4,12 @@ project(macaon2)
add_definitions("-Wall" )
# for gcc < 5.3
if (${CMAKE_C_COMPILER_VERSION} VERSION_LESS 5.3)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
# better, but needs CMake >= 3.0
#set_property(GLOBAL PROPERTY CXX_STANDARD 11)
#set_property(GLOBAL PROPERTY C_STANDARD 11)
endif()
# activate with cmake -DMACA_EXPORT=TRUE
# to use macaon in python/java (with swig)
......
......@@ -16,8 +16,15 @@ The basic procedure to build and install macaon from sources is the following.
If you want to install macaon locally, you can specify the install path with :
cmake -DCMAKE_INSTALL_PREFIX:PATH=/absolute/path/to/macaon_install_dir ..
If you want to create a library to use in python
If you want to create a library to use in python or java
cmake -DMACA_EXPORT=TRUE ..
you need to install the following packages on Ubuntu
sudo apt-get install swig
sudo apt-get install libpython2.7-dev
sudo apt-get install openjdk-8-jdk
or
sudo apt-get install openjdk-7-jdk
- Build the sources with:
make
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment