[Insight-users] Windows Cmake Script
Cory Quammen
cquammen at cs.unc.edu
Mon Jun 6 10:04:33 EDT 2011
Neil,
To set a specific ITK_DIR in a project that uses ITK, the command line option is
-D ITK_DIR:STRING=/path/to/ITK/flavor/build
If I recall correctly, it should appear before the -G option.
Hope that helps,
Cory
On Mon, Jun 6, 2011 at 9:52 AM, Neil Panjwani <paniwani at gmail.com> wrote:
> That works great for building ITK, but for specific projects I need to set
> the specific ITK_DIR because I have several flavors of ITK. How do I specify
> that directory as a parameter to cmake via command line?
>
> On Sun, Jun 5, 2011 at 7:28 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>
>> Hi Neil,
>>
>> from the command line,
>> go to the binary directory
>> where you want to build ITK
>>
>> and type
>>
>> cmake -G"Visual Studio 9 2008 Win64"
>> path_to_itk_source_tree
>>
>>
>> ---
>>
>> There are other options, but this is probably
>> the simplest one.
>>
>>
>> Luis
>>
>>
>> ------------------------------------------------
>> On Mon, May 30, 2011 at 11:25 PM, Neil Panjwani <paniwani at gmail.com>
>> wrote:
>> > Does someone have a script (batch, python, etc) to run Cmake via the
>> > command
>> > line in Windows to build ITK projects?
>> > The only settings I need to change are source and bin directories,
>> > ITK_DIR,
>> > and the compiler (32 vs 64-bit). Thanks.
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.html
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>> >
>> >
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
--
Cory Quammen
Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen
More information about the Insight-users
mailing list