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
|
--- src/IQmol3-3.1.5/CMakeLists.txt 2024-10-10 22:59:53.000000000 +1100
+++ src/IQmol3-3.1.5/CMakeLists.txt.new 2025-03-12 13:47:22.952569770 +1100
@@ -12,9 +12,6 @@
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-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)
@@ -22,6 +19,7 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
+include_directories(/usr/include/openbabel3)
find_package(Qt5 COMPONENTS Core Gui Xml PrintSupport Widgets OpenGL REQUIRED)
@@ -35,25 +33,6 @@
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)
-
if(QARCHIVE)
#set(HDF5_USE_STATIC_LIBRARIES 1)
@@ -147,10 +126,6 @@
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
@@ -166,9 +141,10 @@
Math
Plot
Fort
- libssh2
+ ssh2
yaml-cpp
openbabel
+ OpenMeshTools
QGLViewer
Qt5::Core
Qt5::Gui
@@ -178,7 +154,6 @@
Qt5::OpenGL
${OPENMESH_LIBRARIES}
${Boost_LIBRARIES}
- ${LIBSSH2_LIBRARY}
${OPENGL_LIBRARIES}
${ZLIB_LIBRARIES}
${FORTRAN_LIBRARIES}
|