Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
ca4d9b44
Commit
ca4d9b44
authored
Mar 20, 2012
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cmake to factorize librairies research
parent
27d3ea79
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
34 deletions
+22
-34
CMakeLists.txt
CMakeLists.txt
+17
-5
Src/CMakeLists.txt
Src/CMakeLists.txt
+3
-1
Tests/CMakeLists.txt
Tests/CMakeLists.txt
+1
-14
UTests/CMakeLists.txt
UTests/CMakeLists.txt
+1
-14
No files found.
CMakeLists.txt
View file @
ca4d9b44
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
.5
)
# check if compiling into source directories
STRING
(
COMPARE EQUAL
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_BINARY_DIR
}
"
insource
)
...
...
@@ -31,7 +31,6 @@ OPTION( SCALFMM_ATTACHE_SOURCE "Set to ON to compile with -g" OFF )
OPTION
(
SCALFMM_USE_STARPU
"Set to ON to use starpu"
OFF
)
# Test if openmp is here
set
(
CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/CMake
)
find_package
(
OpenMP
)
...
...
@@ -89,9 +88,25 @@ ADD_DEFINITIONS(-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wconversion)
CONFIGURE_FILE
(
${
CMAKE_SOURCE_DIR
}
/Src/ScalFmmConfig.h.cmake
${
CMAKE_BINARY_DIR
}
/Src/ScalFmmConfig.h
)
# Use Mem stats
MESSAGE
(
STATUS
"SCALFMM_USE_MEM_STATS =
${
SCALFMM_USE_MEM_STATS
}
"
)
# Test if openmp is here
include
(
FindOpenMP
)
if
(
OPENMP_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
OpenMP_CXX_FLAGS
}
"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
OpenMP_EXE_LINKER_FLAGS
}
"
)
endif
()
# Add CBLAS
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
CBLAS_LIBRARIES
}
"
)
# Build - lib
add_subdirectory
(
Src
)
# Link with scalfmm lib
set
(
scalfmm_lib scalfmm
)
# Build - Tests
MESSAGE
(
STATUS
"SCALFMM_BUILD_TESTS =
${
SCALFMM_BUILD_TESTS
}
"
)
if
(
SCALFMM_BUILD_TESTS
)
...
...
@@ -105,9 +120,6 @@ if( SCALFMM_BUILD_UTESTS )
add_subdirectory
(
UTests
)
endif
()
# Use Mem stats
MESSAGE
(
STATUS
"SCALFMM_USE_MEM_STATS =
${
SCALFMM_USE_MEM_STATS
}
"
)
# Build - doc
add_subdirectory
(
Doc
)
...
...
Src/CMakeLists.txt
View file @
ca4d9b44
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
.5
)
# check if compiling into source directories
STRING
(
COMPARE EQUAL
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_BINARY_DIR
}
"
insource
)
...
...
@@ -29,6 +29,8 @@ add_library(
target_link_libraries
(
scalfmm
${
BLAS_LIBRARIES
}
${
LAPACK_LIBRARIES
}
${
STARPU_LIBRARIES
}
)
# Adding the entire project dir as an include dir
...
...
Tests/CMakeLists.txt
View file @
ca4d9b44
cmake_minimum_required
(
VERSION 2.8
)
cmake_minimum_required
(
VERSION 2.8
.5
)
# check if compiling into source directories
STRING
(
COMPARE EQUAL
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_BINARY_DIR
}
"
insource
)
...
...
@@ -9,19 +9,6 @@ endif(insource)
project
(
Tests_scalfmm CXX
)
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_BUILD_TYPE
}
)
# Test if openmp is here
include
(
FindOpenMP
)
if
(
OPENMP_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
OpenMP_CXX_FLAGS
}
"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
OpenMP_EXE_LINKER_FLAGS
}
"
)
endif
()
# Add CBLAS
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
CBLAS_LIBRARIES
}
"
)
# Link with scalfmm lib
set
(
scalfmm_lib scalfmm
)
# Find all code files
file
(
GLOB_RECURSE
...
...
UTests/CMakeLists.txt
View file @
ca4d9b44
cmake_minimum_required
(
VERSION 2.
6
)
cmake_minimum_required
(
VERSION 2.
8.5
)
# check if compiling into source directories
STRING
(
COMPARE EQUAL
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_BINARY_DIR
}
"
insource
)
...
...
@@ -9,19 +9,6 @@ endif(insource)
project
(
UTests_scalfmm CXX
)
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_BUILD_TYPE
}
)
# Test if openmp is here
include
(
FindOpenMP
)
if
(
OPENMP_FOUND
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
OpenMP_CXX_FLAGS
}
"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
OpenMP_EXE_LINKER_FLAGS
}
"
)
endif
()
# Add CBLAS
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
${
CBLAS_LIBRARIES
}
"
)
# Link with scalfmm lib
set
(
scalfmm_lib scalfmm
)
# Find all code files
file
(
GLOB_RECURSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment