summaryrefslogtreecommitdiff
path: root/sci-chemistry/pdbmat/files/CMakeLists.txt
blob: 3a1911c81155f2b4e57723d4fef3f6a934f1b453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required (VERSION 3.31)
project (PDBMAT Fortran)

include(GNUInstallDirs)

option (EXAMPLES "Install additional example files" OFF)

add_executable(diagstd diagstd.f)
add_executable(pdbmat pdbmat.f)

install (TARGETS diagstd pdbmat DESTINATION ${CMAKE_INSTALL_BINDIR})
install (FILES diagstd.README pdbmat.README DESTINATION ${CMAKE_INSTALL_DOCDIR})

if ( EXAMPLES )
	install (DIRECTORY ../Try_ENM2011 DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples)
endif (EXAMPLES)