From 84896fc7d4c320cc2d9c531474b3cd15fa38484e Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 26 Aug 2021 06:36:27 -0400 Subject: [PATCH] add building micelle2d.x --- cmake/Modules/Tools.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/Modules/Tools.cmake b/cmake/Modules/Tools.cmake index 40d3048dcc..146764dbd5 100644 --- a/cmake/Modules/Tools.cmake +++ b/cmake/Modules/Tools.cmake @@ -11,12 +11,14 @@ if(BUILD_TOOLS) enable_language(Fortran) add_executable(chain.x ${LAMMPS_TOOLS_DIR}/chain.f90) target_link_libraries(chain.x PRIVATE ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}) - install(TARGETS chain.x DESTINATION ${CMAKE_INSTALL_BINDIR}) + add_executable(micelle2d.x ${LAMMPS_TOOLS_DIR}/micelle2d.f90) + target_link_libraries(micelle2d.x PRIVATE ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}) + install(TARGETS chain.x micelle2d.x DESTINATION ${CMAKE_INSTALL_BINDIR}) else() - message(WARNING "No suitable Fortran compiler found, skipping build of 'chain.x'") + message(WARNING "No suitable Fortran compiler found, skipping build of 'chain.x' and 'micelle2d.x'") endif() else() - message(WARNING "CMake build doesn't support fortran, skipping build of 'chain.x'") + message(WARNING "CMake build doesn't support Fortran, skipping build of 'chain.x' and 'micelle2d.x'") endif() enable_language(C)