Commit bddad035 authored by berenger-bramas's avatar berenger-bramas

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
cmake_minimum_required (VERSION 2.6)
# 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
OPTION( BUILD_TESTS "Set to ON to build fonctionnalities Tests" ON )
......
cmake_minimum_required(VERSION 2.6)
#Configuration du projet
project(FMB++)
project(Lib_scalfmm)
set(LIBRARY_OUTPUT_PATH ../lib/${CMAKE_BUILD_TYPE})
#Configuration de la bibliothèque
......@@ -11,7 +11,7 @@ file(
./*.cpp
)
add_library(
FMB
scalfmm
STATIC
${source_lib_files}
)
cmake_minimum_required (VERSION 2.6)
project(TestsFMB CXX)
project(Tests_scalfmm CXX)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE})
# Test if openmp is here
......@@ -11,7 +11,7 @@ if(OPENMP_FOUND)
endif()
# Link with fmb lib
set(fmb_lib FMB)
set(fmb_lib scalfmm)
# Find all code files
file(
......
cmake_minimum_required (VERSION 2.6)
project(UTestsFMB CXX)
project(UTests_scalfmm CXX)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BUILD_TYPE})
# Test if openmp is here
......@@ -11,7 +11,7 @@ if(OPENMP_FOUND)
endif()
# Link with fmb lib
set(fmb_lib FMB)
set(fmb_lib scalfmm)
# Find all code files
file(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment