Skip to content

Commit

Permalink
Merge pull request #97 from arcaneframework/dev/gg-simplify-cmake-config
Browse files Browse the repository at this point in the history
Load Arcane package in root file and remove sub-projects
  • Loading branch information
grospelliergilles authored Jan 23, 2024
2 parents 55a76d9 + eb5f968 commit ce847b1
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 57 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
cmake_minimum_required(VERSION 3.21)
project(FemTest1Main LANGUAGES NONE)
project(ArcaneFem LANGUAGES C CXX)

find_package(Arcane REQUIRED)

enable_testing()

set(MSH_DIR ${CMAKE_SOURCE_DIR}/meshes/msh)

# Needed for dynamic loading of services
set(BUILD_SHARED_LIBS TRUE)

Expand Down
5 changes: 0 additions & 5 deletions aerodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(aerodynamics LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(aerodynamics
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions elasticity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Elasticity LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Elasticity
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions elastodynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Elastodynamics LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Elastodynamics
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions electrostatics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Electrostatics LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Electrostatics
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions femutils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(FemTest1 LANGUAGES C CXX)

find_package(Arcane REQUIRED)

option(ENABLE_DEBUG_MATRIX "Enable Debug matrix instead of a sparse one" OFF)

add_library(FemUtils
Expand Down
5 changes: 0 additions & 5 deletions fourier/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Fourier LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Fourier
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions heat/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(heat LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(heat
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions laplace/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Laplace LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Laplace
FemModule.cc
main.cc
Expand Down
5 changes: 0 additions & 5 deletions passmo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)

project(Passmo LANGUAGES C CXX)
find_package(Arcane REQUIRED)

add_executable(Passmo
TypesElastodynamic.h
Elastodynamic_axl.h
Expand Down
6 changes: 0 additions & 6 deletions poisson/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Poisson LANGUAGES C CXX)
#set(CMAKE_BUILD_TYPE Debug)

find_package(Arcane REQUIRED)

if (ARCANE_HAS_CUDA)
find_library(CUSPARSE_LIB cusparse HINTS ${CUDA_TOOLKIT_ROOT_DIR}/lib64)
if(CUSPARSE_LIB)
Expand Down
5 changes: 0 additions & 5 deletions soildynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
cmake_minimum_required(VERSION 3.21)
project(Soildynamics LANGUAGES C CXX)

find_package(Arcane REQUIRED)

add_executable(Soildynamics
FemModule.cc
main.cc
Expand Down

0 comments on commit ce847b1

Please sign in to comment.