/usr/share/libopenms-dev/cmake/OpenMSBuildSystem_messages.cmake is in libopenms-dev 1.11.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | IF (PYOPENMS)
set(pyopenms_targets
COMMAND ${CMAKE_COMMAND} -E echo " pyopenms builds pyOpenMS inplace"
COMMAND ${CMAKE_COMMAND} -E echo " pyopenms_bdist_egg builds pyOpenMS bdist_egg"
COMMAND ${CMAKE_COMMAND} -E echo " pyopenms_bdist builds pyOpenMS bdist as zip file"
COMMAND ${CMAKE_COMMAND} -E echo " pyopenms_rpm builds pyOpenMS rpm"
)
ELSE()
set(pyopenms_targets
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The pyopenms targets are not enabled (to enable use -D PYOPENMS=ON)."
)
ENDIF()
##### targets list #####
if (MSVC)
add_custom_target(targets
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The following make targets are available:"
COMMAND ${CMAKE_COMMAND} -E echo " ALL_BUILD [Visual Studio only] builds the OpenMS library, TOPP tools and UTILS tools"
COMMAND ${CMAKE_COMMAND} -E echo " [no target] [NMake only] builds the OpenMS library, TOPP tools and UTILS tools"
COMMAND ${CMAKE_COMMAND} -E echo " OpenMS builds the OpenMS library"
COMMAND ${CMAKE_COMMAND} -E echo " TOPP builds the TOPP tools"
COMMAND ${CMAKE_COMMAND} -E echo " UTILS builds the UTILS tools"
COMMAND ${CMAKE_COMMAND} -E echo " GUI builds the GUI tools (TOPPView,...)"
COMMAND ${CMAKE_COMMAND} -E echo " RUN_TESTS [Visual Studio only] executes OpenMS and TOPP tests (*)"
COMMAND ${CMAKE_COMMAND} -E echo " test [NMake only] executes OpenMS and TOPP tests (*)"
COMMAND ${CMAKE_COMMAND} -E echo " *) make sure they are built using the 'test_build' target (see below)"
COMMAND ${CMAKE_COMMAND} -E echo " Tutorials_build builds the tutorials in source/EXAMPLES"
COMMAND ${CMAKE_COMMAND} -E echo " Tutorials_exec executes the tutorials in source/EXAMPLES"
COMMAND ${CMAKE_COMMAND} -E echo " doc builds the doxygen documentation and tutorials"
COMMAND ${CMAKE_COMMAND} -E echo " doc_tutorials builds the pdf tutorials"
${pyopenms_targets}
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Single TOPP tools and UTILS have their own target, e.g. TOPPView"
COMMAND ${CMAKE_COMMAND} -E echo "The class tests have their own project in ./source/TEST (project test_build)."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMENT "The most important targets for OpenMS"
VERBATIM)
else()
add_custom_target(targets
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The following make targets are available:"
COMMAND ${CMAKE_COMMAND} -E echo " [no target] builds the OpenMS library, TOPP tools and UTILS tools"
COMMAND ${CMAKE_COMMAND} -E echo " OpenMS builds the OpenMS library"
COMMAND ${CMAKE_COMMAND} -E echo " TOPP builds the TOPP tools"
COMMAND ${CMAKE_COMMAND} -E echo " UTILS builds the UTILS tools"
COMMAND ${CMAKE_COMMAND} -E echo " GUI builds the GUI tools (TOPPView,...)"
COMMAND ${CMAKE_COMMAND} -E echo " test_build builds the OpenMS tests"
COMMAND ${CMAKE_COMMAND} -E echo " test executes OpenMS and TOPP tests"
COMMAND ${CMAKE_COMMAND} -E echo " make sure they are built using the 'test_build' target"
COMMAND ${CMAKE_COMMAND} -E echo " Tutorials_build builds the tutorials in source/EXAMPLES"
COMMAND ${CMAKE_COMMAND} -E echo " Tutorials_exec executes the tutorials in source/EXAMPLES"
COMMAND ${CMAKE_COMMAND} -E echo " doc builds the doxygen documentation and tutorials"
COMMAND ${CMAKE_COMMAND} -E echo " doc_tutorials builds the pdf tutorials"
COMMAND ${CMAKE_COMMAND} -E echo " help list all available targets (very long)"
${pyopenms_targets}
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Single TOPP tools and UTILS have their own target, e.g. TOPPView"
COMMAND ${CMAKE_COMMAND} -E echo "The class tests have their own project in ./source/TEST."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMENT "The most important targets for OpenMS"
VERBATIM)
endif()
##### Message after OpenMS has been built #####
if (MSVC)
## copy OpenMS.dll to test executables dir
get_target_property(WIN32_DLLLOCATION OpenMS LOCATION)
get_filename_component(WIN32_DLLPATH ${WIN32_DLLLOCATION} PATH)
## copy OpenMS.dll to test executables dir "$(TargetFileName)" is a placeholder filled by VS at runtime
file(TO_NATIVE_PATH "${WIN32_DLLPATH}/$(TargetFileName)" DLL_SOURCE)
file(TO_NATIVE_PATH "${PROJECT_BINARY_DIR}/source/TEST/bin/$(ConfigurationName)/$(TargetFileName)" DLL_TARGET)
# create target path if not exists
add_custom_command(TARGET OpenMS
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The OpenMS library has been built."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "You should now build the TOPP tools and tests."
COMMAND ${CMAKE_COMMAND} -E echo "Then you should test your installation by executing the tests."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Execute the 'targets' project to see prominent targets!"
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/source/TEST/bin/$(ConfigurationName)"
COMMAND copy ${DLL_SOURCE} ${DLL_TARGET} /Y
COMMENT "Library build. Copying OpenMS(d).dll to test binary dir"
VERBATIM)
## copy OpenMS_GUI.dll
add_custom_command(TARGET OpenMS_GUI
POST_BUILD
COMMAND copy ${DLL_SOURCE} ${DLL_TARGET} /Y
COMMENT "GUI Library build. Copying OpenMS_GUI(d).dll to test binary dir"
VERBATIM)
if(NOT DISABLE_OPENSWATH)
## copy OpenSWATHAlgo(d).dll
add_custom_command(TARGET OpenSwathAlgo
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/source/TEST/bin/$(ConfigurationName)"
COMMAND copy ${DLL_SOURCE} ${DLL_TARGET} /Y
COMMENT "OpenSwathAlgo Library build. Copying OpenSwathAlgo(d).dll to test binary dir"
VERBATIM)
endif(NOT DISABLE_OPENSWATH)
else()
add_custom_command(TARGET OpenMS
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The OpenMS library has been built."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "You should now build the TOPP tools and tests."
COMMAND ${CMAKE_COMMAND} -E echo "Then you should test your installation by executing the tests."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Make sure to add the OpenMS and contrib lib/ path"
COMMAND ${CMAKE_COMMAND} -E echo "to your LD_LIBRARY_PATH environment variable."
COMMAND ${CMAKE_COMMAND} -E echo "Otherwise the tests and TOPP tools will not work."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "For a full list of targets execute:"
COMMAND ${CMAKE_COMMAND} -E echo "make targets"
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
VERBATIM)
endif()
##### Message after TOPP has been built #####
if (MSVC)
add_custom_command(TARGET TOPP
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The TOPP tools have been built and installed to the bin/ folder."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Then you should test your installation by executing the tests."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Execute the 'targets' project to see prominent targets!"
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
VERBATIM)
else()
add_custom_command(TARGET TOPP
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "The TOPP tools have been built and installed to the bin/ folder."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Then you should test your installation by executing the tests."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "Make sure to add the OpenMS and contrib lib/ path"
COMMAND ${CMAKE_COMMAND} -E echo "to your LD_LIBRARY_PATH environment variable."
COMMAND ${CMAKE_COMMAND} -E echo "Otherwise the tests and TOPP tools will not work."
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "For a full list of make targets execute:"
COMMAND ${CMAKE_COMMAND} -E echo "make targets"
COMMAND ${CMAKE_COMMAND} -E echo ""
COMMAND ${CMAKE_COMMAND} -E echo "=========================================================================="
COMMAND ${CMAKE_COMMAND} -E echo ""
VERBATIM)
endif()
##### Messages at the end of cmake #####
MESSAGE(STATUS "")
MESSAGE(STATUS "-----------------------------------------------------------------")
MESSAGE(STATUS "")
MESSAGE(STATUS "You have successfully configured OpenMS and TOPP.")
MESSAGE(STATUS "")
if (MSVC)
MESSAGE(STATUS "Execute the 'targets' project to see prominent targets!")
else()
MESSAGE(STATUS "For a full list of make targets execute:")
MESSAGE(STATUS "'make targets'")
endif()
MESSAGE(STATUS "")
MESSAGE(STATUS "-----------------------------------------------------------------")
MESSAGE(STATUS "")
|