Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bddad035 authored by berenger-bramas's avatar berenger-bramas
Browse files

Change CMake file

- force out of source build
- change name of lib to scalfmm

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@30 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 7bf474ea
Branches
Tags
No related merge requests found
cmake_minimum_required (VERSION 2.6) cmake_minimum_required (VERSION 2.6)
# Project Infos # Project Infos
project(FMB_All CXX) project(scalfmm CXX)
# check if compiling into source directories
STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource)
IF(insource)
MESSAGE(FATAL_ERROR "${PROJECT_NAME} requires an out of source build. Goto ./Build and tapes cmake ../")
ENDIF(insource)
# Options # Options
OPTION( BUILD_TESTS "Set to ON to build fonctionnalities Tests" ON ) OPTION( BUILD_TESTS "Set to ON to build fonctionnalities Tests" ON )
......
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
#Configuration du projet #Configuration du projet
project(FMB++) project(Lib_scalfmm)
set(LIBRARY_OUTPUT_PATH ../lib/${CMAKE_BUILD_TYPE}) set(LIBRARY_OUTPUT_PATH ../lib/${CMAKE_BUILD_TYPE})
#Configuration de la bibliothèque #Configuration de la bibliothèque
...@@ -11,7 +11,7 @@ file( ...@@ -11,7 +11,7 @@ file(
./*.cpp ./*.cpp
) )
add_library( add_library(
FMB scalfmm
STATIC STATIC
${source_lib_files} ${source_lib_files}
) )
cmake_minimum_required (VERSION 2.6) cmake_minimum_required (VERSION 2.6)
project(TestsFMB CXX) project(Tests_scalfmm CXX)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE}) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE})
# Test if openmp is here # Test if openmp is here
...@@ -11,7 +11,7 @@ if(OPENMP_FOUND) ...@@ -11,7 +11,7 @@ if(OPENMP_FOUND)
endif() endif()
# Link with fmb lib # Link with fmb lib
set(fmb_lib FMB) set(fmb_lib scalfmm)
# Find all code files # Find all code files
file( file(
......
cmake_minimum_required (VERSION 2.6) cmake_minimum_required (VERSION 2.6)
project(UTestsFMB CXX) project(UTests_scalfmm CXX)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE}) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE})
# Test if openmp is here # Test if openmp is here
...@@ -11,7 +11,7 @@ if(OPENMP_FOUND) ...@@ -11,7 +11,7 @@ if(OPENMP_FOUND)
endif() endif()
# Link with fmb lib # Link with fmb lib
set(fmb_lib FMB) set(fmb_lib scalfmm)
# Find all code files # Find all code files
file( file(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment