Commit a566419c authored by Richard Berger's avatar Richard Berger
Browse files

Add LAMMPS_LIB_SOURCE_DIR variable in CMakeLists.txt

parent fdd3d802
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.1)
project(lammps)
set(SOVERSION 0)
set(LAMMPS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../src)
set(LAMMPS_LIB_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../lib)

if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_C_FLAGS)
  #release comes with -O3 by default
@@ -102,9 +103,9 @@ endforeach()

if(ENABLE_REAX)
  enable_language(Fortran)
  file(GLOB REAX_SOURCES ${CMAKE_SOURCE_DIR}/../lib/reax/*.F)
  file(GLOB REAX_SOURCES ${LAMMPS_LIB_SOURCE_DIR}/reax/*.F)
  list(APPEND LIB_SOURCES ${REAX_SOURCES})
  include_directories(${CMAKE_SOURCE_DIR}/../lib/reax)
  include_directories(${LAMMPS_LIB_SOURCE_DIR}/reax)
endif()
include_directories(${LAMMPS_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/Headers)