Hi,
I'm trying the same and I used the following :

------
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
project(QtAppExample)
find_package(MITK REQUIRED)
# Check that MITK has been build with Qt support
if(NOT MITK_USE_QT)
  message(SEND_ERROR "MITK needs to be built with MITK_USE_QT set to ON")
endif()
# Create the executable - it needs the MitkQtWidgetsExt module
mitk_create_executable(${PROJECT_NAME} DEPENDS MitkQtWidgets)
-----

I just succeed with Step1.

On 2 November 2015 at 20:42, Hongzhi Lan <hong...@stanford.edu> wrote:

> Thanks for your prompt reply. But my goal is not just to build the
> examples. I want to use MITK as a "toolkit", so I have to  create my own
> cmakelists.txt to build the examples and later I can create/build my own
> project using MITK as a toolkit.
>
> Thanks,
> Hongzhi
>
> ________________________________________
> From: Kislinskiy, Stefan <s.kislins...@dkfz-heidelberg.de>
> Sent: Monday, November 02, 2015 12:13 PM
> To: Hongzhi Lan; mitk-users@lists.sourceforge.net
> Subject: AW: Build tutorial steps with CMake
>
> Hi,
>
> the tutorial steps are included in MITK. Just enable MITK_BUILD_EXAMPLES
> in CMake.
>
> Best,
> Stefan
> ________________________________________
> Von: Hongzhi Lan [hong...@stanford.edu]
> Gesendet: Montag, 2. November 2015 21:05
> An: mitk-users@lists.sourceforge.net
> Betreff: [mitk-users] Build tutorial steps with CMake
>
> Hi,
>
>
> After I successfully built/ran MITK, I want to create my own
> cmakelists.txt to build step 1~10 in the MITK tutorial (using MITK as a
> toolkit). I checked the list archive. One post (
> http://sourceforge.net/p/mitk/mailman/message/27520536/) talked about
> this but it's too old (2011). Could someone give me a complete example?
> Some posts mentioned using MITK project template or Plugin Generator, which
> I think mainly for developing plugins, not for using MITK as a toolkit.
>
>
> My envirionment/tool:
>
> MITK: 2015.5.2
>
> OS: Ubuntu 14.04
>
> Compiler: gcc 4.8.4
>
> CMake: 3.2.1
>
>
> Thanks a lot!
>
>
> Hongzhi
>
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> mitk-users mailing list
> mitk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>



-- 
João Ascenso
Universidade Nova de Lisboa - Faculdade de Ciências e Tecnologias
Mestrado Integrado em Engenharia Electrotécnica e de Computadores
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to