Hi Hongzhi, in my opinion it is not necessarily advisable to start by excising some part of MITK in order to get to grips with the build system. You could take a look at [1] and the project template [2] to have an example of a CMake based project using MITK. Depending on whether or not you intend to use the GUI and application framework part of MITK you might have to fiddle with the CMakeExternals/MITK.cmake [3]
Hope this helps, Caspar [1] http://docs.mitk.org/2015.05/HowToNewProject.html [2] https://github.com/MITK/MITK-ProjectTemplate [3] https://github.com/MITK/MITK-ProjectTemplate/blob/master/CMakeExternals/MITK.cmake -----Ursprüngliche Nachricht----- Von: Hongzhi Lan [mailto:hong...@stanford.edu] Gesendet: Montag, 2. November 2015 21:42 An: Kislinskiy, Stefan; mitk-users@lists.sourceforge.net Betreff: Re: [mitk-users] Build tutorial steps with CMake 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 ------------------------------------------------------------------------------ _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users