-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (22 loc) · 845 Bytes
/
CMakeLists.txt
File metadata and controls
26 lines (22 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##########################################
# CMake build system for plugin examples.
# The is meant to be used as a template for plugins that are
# distributed independent from the LAMMPS package.
##########################################
cmake_minimum_required(VERSION 3.10)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
project(lammpsplugins VERSION 1.0 LANGUAGES CXX)
if(NOT LAMMPS_SOURCE_DIR)
message(FATAL_ERROR "Must set LAMMPS_SOURCE_DIR variable")
endif()
set(CMAKE_MODULE_PATH "${LAMMPS_SOURCE_DIR}/../cmake/Modules")
include(CheckIncludeFileCXX)
include(LAMMPSInterfacePlugin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_custom_target(package DEPENDS package-USER-AEAM package-USER-BFIELD)
endif()
add_subdirectory(USER-AEAM)
add_subdirectory(USER-BFIELD)