Hi,
it looks like the mitk/CMake subdirectory is not added to the CMake
module path. This should happen on line 26 of the generated
MITKConfig.cmake file in your binary tree. This probably happens because
you have a blank in your path ("Program files"). I filed a bug for this
http://bugs.mitk.org/show_bug.cgi?id=5912 and will commit a fix soon.
If there are other problems please post again or add a comment to the bug.
Best
Marco
On 11/03/2010 10:38 AM, Michela Schorta wrote:
> Hi!
> I'd like to build my own Step1 of the tutorial, so I wrote the following
> CMakeList.txt:
>
> PROJECT(Step1)
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
> if(COMMAND cmake_policy)
> cmake_policy(SET CMP0003 OLD)
> endif(COMMAND cmake_policy)
>
> FIND_PACKAGE(MITK REQUIRED)
>
> MITK_USE_MODULE(QmitkExt)
> INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES})
>
> FIND_PACKAGE(ITK REQUIRED)
> INCLUDE(${ITK_USE_FILE})
>
> FIND_PACKAGE(Qt4 REQUIRED)
> INCLUDE(${QT_USE_FILE})
> INCLUDE_DIRECTORIES(${QMITK_INCLUDE_DIRS})
> LINK_DIRECTORIES(${QMITK_LINK_DIRECTORIES})
>
> ADD_EXECUTABLE(Step1 Step1.cpp QtTesting.cpp)
> TARGET_LINK_LIBRARIES(Step1 ${QMITK_LIBRARIES} ${QT_LIBRARIES})
>
>
> I'm using the following versions of the programs:
> VS2008, CMake 2.8.2, QT4.7, VTK5.6.1, ITK 3.20, MITK svn
> http://svn2.mitk.org/trunk/mitk
> The programs are working, so is the tutorial in MITK, but by configuring
> CMake I get the following errors:
>
>
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:138
> (INCLUDE):
>
> include could not find load file:
>
> MacroParseArguments
>
> Call Stack (most recent call first):
>
> C:/Program Files/MITK/bin/MITKConfig.cmake:37 (INCLUDE)
>
> CMakeLists.txt:8 (FIND_PACKAGE)
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
> (INCLUDE):
>
> include could not find load file:
>
> MITK_ITK_Config
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:10 (MITK_USE_MODULE)
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
> (INCLUDE):
>
> include could not find load file:
>
> MITK_Poco_Config
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:10 (MITK_USE_MODULE)
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
> (INCLUDE):
>
> include could not find load file:
>
> MITK_QT_Config
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:10 (MITK_USE_MODULE)
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
> (INCLUDE):
>
> include could not find load file:
>
> MITK_QVTK_Config
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:10 (MITK_USE_MODULE)
>
> CMake Error at C:/Program Files/MITK/src/CMake/CoreHelpers.cmake:347
> (INCLUDE):
>
> include could not find load file:
>
> MITK_VTK_Config
>
> Call Stack (most recent call first):
>
> CMakeLists.txt:10 (MITK_USE_MODULE)
>
>
> Does anybody know what's wrong about the file?
>
>
> Best regards
> Michela
--
----------------------------------------------------------------------
Dipl.-Inform. Med. Marco Nolden
Deutsches Krebsforschungszentrum (German Cancer Research Center)
Div. Medical & Biological Informatics Tel: (+49) 6221-42 2325
Im Neuenheimer Feld 280 Fax: (+49) 6221-42 2345
D-69120 Heidelberg eMail: [email protected]
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware,
phishing sites, and compromised hosts - saving your company time,
money, and embarrassment. Learn More!
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users