Skip to content
Snippets Groups Projects
Commit 39822222 authored by Paul Heinzlreiter's avatar Paul Heinzlreiter
Browse files

* working on cmake

parent 334051e0
Branches
No related merge requests found
Showing
with 19 additions and 12 deletions
......@@ -2,10 +2,13 @@ cmake_minimum_required (VERSION 2.6)
project (bh_tree_mpi)
find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
include_directories(${MPI_INCLUDE_PATH} datastructures simulation)
add_subdirectory(datastructures)
add_subdirectory(simulation)
add_executable(bh_tree_mpi mpimain.cpp)
target_link_libraries(bh_tree_mpi ${MPI_LIBRARIES})
target_link_libraries(bh_tree_mpi datastructures simulation ${MPI_LIBRARIES})
if(MPI_COMPILE_FLAGS)
set_target_properties(bh_tree_mpi PROPERTIES
......
File moved
File moved
File moved
File moved
file( GLOB datastructures_SOURCES *.hpp *.cpp )
add_library( datastructures ${datastructures_SOURCES} )
\ No newline at end of file
File moved
File moved
File moved
......@@ -18,7 +18,6 @@ namespace nbody {
friend class Node;
protected:
Node* nodes;
//Control control;
unsigned int maxLeafBodies;
public:
static vector<Body> dubinskiParse(string filename);
......
#include "BarnesHutTree.hpp"
#include "MpiSimulation.hpp"
#include <BarnesHutTree.hpp>
#include <MpiSimulation.hpp>
#include <iostream>
#include <mpi.h>
......
#include "BarnesHutTree.hpp"
#include "MpiSimulation.hpp"
#include <BarnesHutTree.hpp>
#include <MpiSimulation.hpp>
#include <iostream>
#include <mpi.h>
......
file( GLOB simulation_SOURCES *.hpp *.cpp )
include_directories(../datastructures)
add_library( simulation ${simulation_SOURCES} )
\ No newline at end of file
......@@ -4,7 +4,7 @@
#include <mpi.h>
#include <vector>
#include "Body.hpp"
#include <Body.hpp>
namespace nbody {
using namespace std;
......
#include <iostream>
#include <cmath>
#include "Body.hpp"
#include "Box.hpp"
#include <Body.hpp>
#include <Box.hpp>
#include <Tree.hpp>
#include <Node.hpp>
#include "MpiSimulation.hpp"
#include "Tree.hpp"
#include "Node.hpp"
namespace nbody {
using namespace std;
......
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