require CMake version 3.16
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
########################################
|
||||
# CMake build for automated testing
|
||||
# -*- CMake -*- build file for automated testing
|
||||
# This file is part of LAMMPS
|
||||
# Created by Axel Kohlmeyer and Richard Berger
|
||||
########################################
|
||||
# download and build googletest framework
|
||||
|
||||
# download and build googletest framework
|
||||
# cannot compile googletest anymore with the default GCC on RHEL 7.x
|
||||
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0))
|
||||
message(FATAL_ERROR "Need GNU C++ compiler version 6.x or later for unit testing")
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for testing the c-library interface
|
||||
|
||||
add_executable(test_library_open test_library_open.cpp test_main.cpp)
|
||||
target_link_libraries(test_library_open PRIVATE lammps GTest::GMock)
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for testing LAMMPS commands
|
||||
|
||||
add_executable(test_simple_commands test_simple_commands.cpp)
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for testing the direct calls to individual C++ classes
|
||||
|
||||
add_executable(test_lammps_class test_lammps_class.cpp)
|
||||
target_link_libraries(test_lammps_class PRIVATE lammps GTest::GMockMain)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Custom minimal -*- CMake -*- file for libyaml
|
||||
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(libyaml VERSION 0.2.5
|
||||
DESCRIPTION "LibYAML a YAML parser and emitter library"
|
||||
LANGUAGES C
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for tests of classes computing or modifying forces
|
||||
|
||||
find_package(YAML)
|
||||
if(NOT YAML_FOUND)
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for tests of file reading or writing classes and functions in LAMMPS
|
||||
|
||||
add_executable(test_atom_styles test_atom_styles.cpp)
|
||||
target_link_libraries(test_atom_styles PRIVATE lammps GTest::GMock)
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
# -*- CMake -*- file for testing the Fortran interface to LAMMPS
|
||||
|
||||
include(CheckGeneratorSupport)
|
||||
if(NOT CMAKE_GENERATOR_SUPPORT_FORTRAN)
|
||||
message(STATUS "Skipping Tests for the LAMMPS Fortran Module: no Fortran support in build tool")
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
# Test calling Python from LAMMPS (and importing the LAMMPS module
|
||||
# inside those functions). This can do an "anonymous" import of symbols
|
||||
# from the executable, so the shared library is not needed. The
|
||||
# availability of the PYTHON package is tested for inside the tester.
|
||||
# -*- CMake -*- file for tests calling Python from LAMMPS (and importing
|
||||
# the LAMMPS module inside those functions). This can do an "anonymous"
|
||||
# import of symbols from the executable, so the shared library is not
|
||||
# needed. The availability of the PYTHON package is tested for inside
|
||||
# the tester.
|
||||
|
||||
set(TEST_INPUT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for tests of utily functions and classes in LAMMPS
|
||||
|
||||
# we use python 3's subprocess module to run the tools and check the output
|
||||
if(CMAKE_VERSION VERSION_LESS 3.12)
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
# -*- CMake -*- file for tests of utily functions and classes in LAMMPS
|
||||
|
||||
add_executable(test_tokenizer test_tokenizer.cpp)
|
||||
target_link_libraries(test_tokenizer PRIVATE lammps GTest::GMockMain)
|
||||
|
||||
Reference in New Issue
Block a user