简体   繁体   中英

How to add the installation prefix of “MITK”

In Windows 7 x64, VisualStudio 2010, I need to know how to set Cmake path.

There is an error message which says

Add the installation prefix of "MITK" to CMAKE_PREFIX_PATH or set "MITK_DIR" to a directory containing one of the above files.

Do you have any idea on how to add the installation prefix of "MITK"?

To append something to CMAKE_PREFIX_PATH You can use something like this ([1]):

list(APPEND CMAKE_PREFIX_PATH "C:/some-path/")

Setting some variable can also be done from console while invoking CMake. For example like this ([2]) :

cmake -DMITK_DIR:STRING="C:/some-path" .. 

Or directly in the CMakeLists.txt ([3]):

set(MITK_DIR "C:/some-path")

[1] http://www.cmake.org/cmake/help/v3.0/command/list.html

[2] Passing the argument to CMAKE via command prompt

[3] http://www.cmake.org/cmake/help/v3.0/command/set.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM