Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | find_package(KF5 REQUIRED COMPONENTS | 50 | find_package(KF5 REQUIRED COMPONENTS | ||
51 | Archive | 51 | Archive | ||
52 | Config | 52 | Config | ||
53 | CoreAddons | 53 | CoreAddons | ||
54 | DocTools | 54 | DocTools | ||
55 | I18n | 55 | I18n | ||
56 | KDELibs4Support | 56 | KDELibs4Support | ||
57 | KHtml | 57 | KHtml | ||
58 | NewStuff | | |||
59 | Parts | 58 | Parts | ||
60 | Plotting | 59 | Plotting | ||
61 | Solid | 60 | Solid | ||
62 | UnitConversion | 61 | UnitConversion | ||
63 | WidgetsAddons | 62 | WidgetsAddons | ||
64 | ) | 63 | ) | ||
65 | 64 | | |||
66 | ecm_setup_version("5.0.0" | 65 | ecm_setup_version("5.0.0" | ||
Show All 21 Lines | |||||
88 | #include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} libscience) | 87 | #include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} libscience) | ||
89 | if(MSVC) | 88 | if(MSVC) | ||
90 | # for correctly linking openbabel: | 89 | # for correctly linking openbabel: | ||
91 | # see http://www.mail-archive.com/openbabel-devel@lists.sourceforge.net/msg01975.html | 90 | # see http://www.mail-archive.com/openbabel-devel@lists.sourceforge.net/msg01975.html | ||
92 | add_definitions(-DUSING_DYNAMIC_LIBS) | 91 | add_definitions(-DUSING_DYNAMIC_LIBS) | ||
93 | endif(MSVC) | 92 | endif(MSVC) | ||
94 | 93 | | |||
95 | if (OPENBABEL2_FOUND AND AvogadroLibs_FOUND AND EIGEN3_FOUND) | 94 | if (OPENBABEL2_FOUND AND AvogadroLibs_FOUND AND EIGEN3_FOUND) | ||
95 | find_package(KF5NewStuff REQUIRED) | ||||
96 | # avoid compilerwarnings about redefinitions | 96 | # avoid compilerwarnings about redefinitions | ||
97 | # todo: use check_function_exits() ? | 97 | # todo: use check_function_exits() ? | ||
98 | message(STATUS "Kalzium molecular editor enabled") | 98 | message(STATUS "Kalzium molecular editor enabled") | ||
99 | if (WIN32) | 99 | if (WIN32) | ||
100 | add_definitions(-DHAVE_SNPRINTF -DHAVE_STRCASECMP -DHAVE_STRNCASECMP) | 100 | add_definitions(-DHAVE_SNPRINTF -DHAVE_STRCASECMP -DHAVE_STRNCASECMP) | ||
101 | endif (WIN32) | 101 | endif (WIN32) | ||
102 | add_subdirectory(compoundviewer) | 102 | add_subdirectory(compoundviewer) | ||
103 | else (OPENBABEL2_FOUND AND AvogadroLibs_FOUND AND EIGEN3_FOUND) | 103 | else (OPENBABEL2_FOUND AND AvogadroLibs_FOUND AND EIGEN3_FOUND) | ||
Show All 13 Lines |