diff --git a/AMDiS/CMakeLists.txt b/AMDiS/CMakeLists.txt index ac8a9beb52b6d7a1a878179f086b52f48c6a55ae..e895215e7e3817c411efb96180e58b9d8601656e 100644 --- a/AMDiS/CMakeLists.txt +++ b/AMDiS/CMakeLists.txt @@ -351,11 +351,11 @@ INSTALL(FILES ${HEADERS} DESTINATION include/amdis/io) configure_file(${AMDiS_SOURCE_DIR}/AMDiSConfig.cmake.in - ${AMDiS_BINARY_DIR}/AMDiSConfig.cmake + ${AMDiS_BINARY_DIR}/AMDISConfig.cmake @ONLY ) -INSTALL(FILES ${AMDiS_BINARY_DIR}/AMDiSConfig.cmake +INSTALL(FILES ${AMDiS_BINARY_DIR}/AMDISConfig.cmake DESTINATION share/amdis/) list(APPEND deb_add_dirs "share/amdis/") diff --git a/AMDiS/HOWTO_cmake.html b/AMDiS/HOWTO_cmake.html index db82914dfc3f733ecaaa8b507891791abf0986db..528938011a5fe58b48670390369d890704ff6447 100644 --- a/AMDiS/HOWTO_cmake.html +++ b/AMDiS/HOWTO_cmake.html @@ -8,10 +8,13 @@ <body> <h1> Using AMDiS with cmake </h1> With this short page, I will show you, how to use the cmake buildsystem with AMDiS. The introduction consists of two main parts: -<ol> <li>compiling and installing AMDiS with CMake </li> -<li> using the cmake installed AMDiS in your project </li></ol> +<ol> +<li> <a href="#compiling" > compiling and installing AMDiS with CMake </a ></li> +<li> <a href="#using" > using the cmake installed AMDiS in your project </a ></li> +<li> <a href="#faq" > some frequently asked questions </a ></li> +</ol> -<h2> Compiling and installing AMDiS with CMake </h2> +<h2> <a name="compiling" > Compiling and installing AMDiS with CMake </a > </h2> <h3> configure </h3> There are 3 different configure tools for CMake: <ul> <li> cmake (non interactive) </li> @@ -47,7 +50,7 @@ The last command will install AMDiS to /home/joe/programs <a href="#config_with_options" >configuration with options </a> If you only want to build with standard options, you can simply run <verbatim> cmake . </verbatim> -<h2> Using the cmake installed AMDiS in your project </h2> +<h2> <a name="using" > Using the cmake installed AMDiS in your project </a > </h2> A cmake-project consists of the source files and a file CMakeLists.txt, which contains a description of needed libraries, headers and programs. If you have a simple project with one program "fooProg", which have to compile only one source file "src/foo.cc", your CMakeLists.txt consist of the following lines: <p class="desc" > project(projectName) <br> @@ -84,9 +87,16 @@ and we have to tell cmake, that we need the library amdis and each library amdis target_link_libraries(fooProg ${AMDiS_LIBRARIES}) </p > -If cmake does not find AMDiS, you have to set the variable AMDiS_DIR to the directory containing the file AMDiSConfig.cmake. This file resides in +If cmake does not find AMDiS, you have to set the variable AMDIS_DIR to the directory containing the file AMDiSConfig.cmake. This file resides in <p class="desc" > $CMAKE_INSTALL_PREFIX/share/amdis/ </p > + +<h2 > <a name="faq" > Frequently asked questions </a ></h2 > +<h3 > Boost </h3> +If you have different boost versions on your system and you do not want to use the standard version in /usr/lib and /usr/include, you should set the environment variable BOOST_ROOT to your boost-installation. + +<h3 > I will not set the AMDIS_DIR in every project. </h3 > +If you always use the same AMDiS directory, you can add the directory to your PATH variable. </body> </html>