forked from YPLianGroup/AMCA3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.74 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# For optimized version, run with option -DCMAKE_BUILD_TYPE=Release
cmake_minimum_required(VERSION 2.8)
PROJECT(AMCA3D)
find_package(Boost COMPONENTS system filesystem program_options REQUIRED)
find_package(MPI REQUIRED)
set(CMAKE_C_COMPILER mpicc)
set(CMAKE_CXX_COMPILER mpicxx)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Source and header files
set(SOURCES
./CA/src/CafeParsing.cpp
./CA/src/Cafe.cpp
./CA/src/CellularAutomataSolver.cpp
./CA/src/Simulation.cpp
./CA/src/CafeEnv.cpp
./CA/src/CafeSolver.cpp
./CA/src/CellularAutomataManager_3D.cpp
./CA/src/CellularAutomataManager_2D.cpp
./CA/src/CellularAutomataManager.cpp
./CA/src/Envelope.cpp
./CA/src/Grain.cpp
./CA/src/Octahedron.cpp
./CA/src/Orientation.cpp
./CA/src/ParallelCommManager_2D.cpp
./CA/src/ParallelCommManager_3D.cpp
./CA/src/ParallelCommManager.cpp
./CA/src/ProblemPhysics.cpp
./CA/src/Timer.cpp
./CA/src/VtrManager.cpp
./CA/src/VtuManager.cpp
./CA/src/Solver.cpp
./CA/src/Simulation.cpp
./CA/src/Node.cpp
./CA/src/MapVoxelManager.cpp
./CA/src/LoadDataFromFile.cpp
./CA/src/FiniteElementMethodSolver.cpp
./CA/src/FiniteElementManager.cpp
./CA/src/Element.cpp
./CA/src/VtkManager.cpp
./CA/src/CafeMacro.cpp
./CA/src/CellularAutomataManager_3DRemelting.cpp
)
include_directories ( ${CMAKE_SOURCE_DIR}/./CA/include ${MPI_INCLUDE_PATH} ${Boost_INCLUDE_DIR} ${YAML_INCLUDE_DIR})
link_directories( ${Boost_LIBRARY_DIR} ${YAML_LIBRARY_DIR})
add_executable(AMCA3D ${SOURCES})
target_link_libraries( AMCA3D ${Boost_LIBRARIES} yaml-cpp -lpthread)