-cmake_minimum_required(VERSION 3.9.6)
+cmake_minimum_required(VERSION 3.16.3)
project(gromacs-dssp CXX)
-set(CMAKE_CXX_STANDARD 14) # new
+set(CMAKE_CXX_STANDARD 17) # new
set(CMAKE_CXX_STANDARD_REQUIRED ON) # new
set(CMAKE_CXX_EXTENSIONS OFF) # new
find_package(GROMACS 2020 REQUIRED)
gromacs_check_double(GMX_DOUBLE)
gromacs_check_compiler(CXX)
-include_directories(${GROMACS_INCLUDE_DIRS}) # new
+#include_directories(${GROMACS_INCLUDE_DIRS}) # new
add_definitions(${GROMACS_DEFINITIONS})
# Use static linking on MSVC
# different GROMACS installations on the same machine.
# Propagate all flags passed to parent find_package() to the config call below.
-
set(_gmx_find_args "")
if (GROMACS_FIND_VERSION)
if (GROMACS_FIND_VERSION VERSION_LESS "5.1")
add_executable(dssp dssp.cpp dssptools.cpp)
include_directories(
- #${GROMACS_INCLUDE_DIRS}
- ${GROMACS_INCLUDE_DIRS}/../
- ${GROMACS_INCLUDE_DIRS}/../src
+ ${GROMACS_INCLUDE_DIRS}
+ #${GROMACS_INCLUDE_DIRS}/../ #not working
+ ${GROMACS_INCLUDE_DIRS}/../src #working
${CMAKE_SOURCE_DIR}
)
set_target_properties(dssp PROPERTIES
#include <algorithm>
#include "gromacs/math/units.h"
+
#include "gromacs/pbcutil/pbc.h"
#include <gromacs/trajectoryanalysis.h>
#include "gromacs/trajectoryanalysis/topologyinformation.h"