diff options
author | Gard Spreemann <gard.spreemann@epfl.ch> | 2017-09-21 13:35:50 +0200 |
---|---|---|
committer | Gard Spreemann <gard.spreemann@epfl.ch> | 2017-09-21 13:35:50 +0200 |
commit | aa1134796c1d4003dbdf9dc92a1b7d00598f67ce (patch) | |
tree | 3b53aa6a1de5bdfd37ef954ae9261990cee55763 |
Initial commit.
-rw-r--r-- | CMakeLists.txt | 12 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/main.cpp | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4b4c13e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 2.8.8) + +project(lapdog) + +find_package(MPI REQUIRED) +include_directories(${MPI_INCLUDE_PATH}) +link_directories(${MPI_LIBRARIES}) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MPI_COMPILE_FLAGS} -Wall -pedantic -Wextra -std=c++14") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_LINK_FLAGS}") + +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..96aafbe --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,2 @@ +add_executable(lapdog main.cpp) +target_link_libraries(lapdog ${MPI_LIBRARIES}) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..a6802d8 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,6 @@ +#include <iostream> + +int main(int argc, char ** argv) +{ + return 0; +} |