mirror of https://github.com/lammps/lammps.git
Add LAMMPS_LIB_SOURCE_DIR variable in CMakeLists.txt
This commit is contained in:
parent
fdd3d802f0
commit
a566419ca6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue