-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ibaned/cmake
Add a CMake build system
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
project(DEMSI) | ||
|
||
set(CMAKE_CXX_FLAGS "-O3 -g --std=c++11") | ||
|
||
set(LAMMPS_PREFIX "" CACHE PATH "Path where LAMMPS is installed") | ||
|
||
find_path(LAMMPS_INCLUDE_DIR NAMES lammps.h PATHS "${LAMMPS_PREFIX}/include") | ||
message("looking for lammps in ${LAMMPS_PREFIX}/lib") | ||
find_library(LAMMPS_LIB NAMES lammps PATHS "${LAMMPS_PREFIX}/lib") | ||
|
||
add_subdirectory(src) |
Submodule DEMSI-LAMMPS
updated
from c80203 to fc12d1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
add_executable(demsi | ||
demsi.cpp | ||
grid.cpp | ||
lmp_instance.cpp | ||
thermo.cpp | ||
) | ||
|
||
target_link_libraries(demsi PUBLIC "${LAMMPS_LIB}") | ||
target_include_directories(demsi PUBLIC "${LAMMPS_INCLUDE_DIR}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters