[CMake] QT, CMake and ITK
Gabriel Santiago
santiago.eletrica at gmail.com
Thu Apr 25 08:56:59 EDT 2013
Now, the only lib available to me is
ITKIOFactoryRegistration/itkImageIOFactoryRegisterManager.h...
On 24 April 2013 16:48, Gabriel Santiago <santiago.eletrica at gmail.com>wrote:
> Still not working... It could be something with the installation of ITK? I
> used to use it within Eclipse with no problem at all... But now it seems
> that some .h files are "missing"...
>
>
> On 24 April 2013 16:38, John Drescher <drescherjm at gmail.com> wrote:
>
>> On Wed, Apr 24, 2013 at 3:31 PM, Gabriel Santiago
>> <santiago.eletrica at gmail.com> wrote:
>> > Actually my CMake is 2.8.7, ITK is 3.20.1 and QT is the latest...
>> >
>>
>> I believe this file should work. Although I really do not have any
>> more time to help if it does not.
>>
>> project(test)
>>
>> cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
>>
>> find_package(Qt4 REQUIRED)
>> include(${QT_USE_FILE})
>>
>> find_package(ITK REQUIRED)
>> include( ${ITK_USE_FILE} )
>>
>> set( qtproject_SRCS main.cpp)
>>
>> set(qtproject_UIS mainwindow.ui)
>>
>> QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})
>>
>> include_directories(${CMAKE_CURRENT_BINARY_DIR})
>>
>> add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H})
>>
>> TARGET_LINK_LIBRARIES(test ${ITK_LIBRARIES} ${QT_LIBRARIES} )
>>
>> John
>>
>
>
>
> --
> Gabriel Santiago
>
> ~"As long as I live so long do I learn"~
> Ramakhrishna
>
--
Gabriel Santiago
~"As long as I live so long do I learn"~
Ramakhrishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130425/46cfdea7/attachment.htm>
More information about the CMake
mailing list