cmake -DITK_DIR=/some/path/to/ITK -G "Visual Studio 8 2005 Win64" ../src
___________________________________________________________ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Jun 6, 2011, at 10:01 AM, Neil Panjwani wrote: > Hi, > > I'm trying to build an ITK project via command line automatically rather than > going through the window prompts. During this process, I only ever change two > options: 1) the visual studio generator (32 or 64-bit) and 2) the ITK_DIR > because I have several installations of ITK and the default find package does > not always select the one I want. > > I currently type: > > cmake -G "Visual Studio 8 2005 Win64" ../src > > from the build directory and that works fine. However, I am not able to set > the ITK_DIR automatically. How can I set it either via this command line or > in the CmakeLists.txt file that this calls upon? > > Thanks, > Neil > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake