summarylogtreecommitdiffstats
path: root/CMakeLists.txt.patch
blob: 466837908f407eae2453502dc578955e19a36fe1 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
--- src/IQmol3-3.2.0/CMakeLists.txt	2025-06-10 21:23:43.000000000 +1000
+++ CMakeLists.txt.new	2025-07-06 22:29:34.081707762 +1000
@@ -13,13 +13,6 @@
 set(CMAKE_CXX_STANDARD 14)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
-#set(CMAKE_BUILD_TYPE Debug)
-set(CMAKE_BUILD_TYPE Release)
-
-set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -Wno-deprecated")
-
-set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
-
 # We need this to be able to include e.g. "Data/Bank.h" in the sources
 include_directories(src)
 # and this to access autogenerated files 
@@ -35,30 +28,11 @@
 endif()
 
 
-find_package(ZSTD    REQUIRED)
 find_package(Threads REQUIRED)
 find_package(OpenGL  REQUIRED)
 find_package(OpenSSL REQUIRED)
-
-# No CMakeLists.txt for libQGLViewer
-include_directories(modules/libQGLViewer)
-add_subdirectory(modules  EXCLUDE_FROM_ALL)
-
-include_directories(modules/libssh2/include)
-add_subdirectory(modules/libssh2  EXCLUDE_FROM_ALL)
-
-include_directories(modules/openmesh/src)
-add_subdirectory(modules/openmesh  EXCLUDE_FROM_ALL)
-set(OPENMESH_LIBRARIES OpenMeshCoreStatic OpenMeshToolsStatic)
-
-include_directories(modules/yaml-cpp/include)
-add_subdirectory(modules/yaml-cpp  EXCLUDE_FROM_ALL)
-
-include_directories(modules/openbabel/include)
-include_directories(${CMAKE_CURRENT_BINARY_DIR}/modules/openbabel/include)
-add_subdirectory(modules/openbabel  EXCLUDE_FROM_ALL)
-
-add_subdirectory(modules/libarchive EXCLUDE_FROM_ALL)
+find_package(OpenBabel3 REQUIRED)
+find_package(OpenMesh REQUIRED)
 
 if (WITH_GROMACS)
    add_compile_definitions(GROMACS)
@@ -160,11 +134,6 @@
    set_target_properties(${targetName} PROPERTIES WIN32_EXECUTABLE ON)
 endif (WIN32)
 
-
-# This works on ubuntu, not sure about others
-unset(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES)
-set(FORTRAN_LIBRARIES libgfortran.a libquadmath.a)
-
 target_link_libraries (${targetName}
    Main
    Process
@@ -180,10 +149,13 @@
    Math
    Plot
    Fort
-   libssh2
+   Amber
+   ssh2
    yaml-cpp
    openbabel
+   OpenMeshTools
    QGLViewer
+   zstd
    Qt5::Core
    Qt5::Gui
    Qt5::Xml
@@ -192,7 +164,6 @@
    Qt5::OpenGL
    ${OPENMESH_LIBRARIES}
    ${Boost_LIBRARIES}
-   ${LIBSSH2_LIBRARY}
    ${OPENGL_LIBRARIES}
    ${ZLIB_LIBRARIES}
    ${FORTRAN_LIBRARIES}