0

cmake プロジェクトから Eclipse プロジェクトを作成しようとしています。次のコマンドを使用しました

cmake -G "Eclipse CDT4 - Unix Makefiles" ./`

次のエラーが発生します

CMake Error at CMakeLists.txt:119 (find_package):
  By not providing "FindGlib.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Glib", but
  CMake did not find one.

  Could not find a package configuration file provided by "Glib" (requested
  version 2.28) with any of the following names:

    GlibConfig.cmake
    glib-config.cmake

  Add the installation prefix of "Glib" to CMAKE_PREFIX_PATH or set
  "Glib_DIR" to a directory containing one of the above files.  If "Glib"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

glib をインストールしました。実際には、私が推測するパスを解決できませんでした。find が cmake file にある場所ならどこでも、スマイラーエラーが発生しています。方法を提案してください。このプロジェクトをcmakeにロードする必要があります。ありがとう。

エラーメッセージが指している119行目です

    find_package(Glib 2.28 REQUIRED)
include_directories(${Glib_INCLUDE_DIRS})
list(APPEND LIBS ${Glib_LIBRARIES})
add_definitions(${Glib_DEFINITIONS})
4

1 に答える 1