[IGSTK-Users] making an igstk project using visual studio express

Chris Heath christopher.c.heath at gmail.com
Wed Jul 16 15:33:05 EDT 2008


Ray,

Sorry I sent this twice, I forgot to copy the IGSTK-Users list.  Also,  
a couple of variables were incorrect, this version should work.


Try this CMake script.  In order to use it, you will need to copy the  
FLTKUse.cmake and UseIGSTK.cmake files from the build directories of  
these packages to the $CMAKE_BUILD_DIR/share/cmake-2.x/Module directory.

Project(HelloWorld)

SET (Required_Packages
		FLTK		
		IGSTK
		ITK
		VTK
	)
	
SET (Project_SRCS
		HelloWorld.cxx
	)

SET (FLTK_SRCS 	HelloWorld.fl)

FOREACH (Package ${Required_Packages})
	FIND_PACKAGE (${Package})
	IF (NOT ${Package}_FOUND)
		MESSAGE ("Can't find ${Package} package.")
	ENDIF (NOT ${Package}_FOUND)
ENDFOREACH (Package)

IF (FLTK_FOUND)
	INCLUDE (FLTKUse)
	FLTK_WRAP_UI (DrillCutOff ${FLTK_SRCS})
ENDIF (FLTK_FOUND)

IF (IGSTK_FOUND)
	INCLUDE (UseIGSTK)
ENDIF (IGSTK_FOUND)

ADD_EXECUTABLE	(HelloWorld  ${Project_SRCS} ${HelloWorld_FLTK_UI_SRCS})
TARGET_LINK_LIBRARIES(HelloWorld IGSTK)



Regards,
Chris
On Jul 16, 2008, at 2:19 PM, Ray Tayek wrote:

> At 06:48 AM 7/16/2008, you wrote:
>> ... We strongly encourage you to use cmake to configure your igstk- 
>> based projects.
>> If you are using cmake, please post your  cmake list file.
>
> i am new to cmake. so all i have is the cmake stuff that comes with  
> igstk etc. are you suggesting that i hack up the CMakeLists.txt file  
> for helloworld (please see below)?
>
> i tried building a visual studio project from scratch. it's painful.  
> the igstk.lib file looks like it needs to be specifically included.  
> still lots of unresolved externs.
>
> has anyone had any luck modifying the project to use precompiled  
> headers? the build is very slow.
>
> thanks
>
> PROJECT(HelloWorld)
>
> SET(HelloWorld_GUI_SRCS
>    HelloWorldGUI.fl
>    )
>
> SET(HelloWorld_SRCS
>   HelloWorld.cxx
>   )
>
> INCLUDE_DIRECTORIES(
>  ${HelloWorld_SOURCE_DIR}
>  ${HelloWorld_BINARY_DIR}
>  )
>
> FLTK_WRAP_UI(HelloWorld ${HelloWorld_GUI_SRCS})
> ADD_EXECUTABLE(HelloWorld ${HelloWorld_FLTK_UI_SRCS} $ 
> {HelloWorld_SRCS})
> TARGET_LINK_LIBRARIES(HelloWorld IGSTK)
>
>
>
>
>
>
>>> hi, newbie trying to make an igstk project, i can get the  
>>> helloworld to work. but that does not use pre-compiled headers and  
>>> has bunch of other projects in the solution
>>>
>>> has anyone had any luck turning on using pre-compiled header in  
>>> the sample projects?
>>>
>>> ideally, one could make a project from scratch, but the additional  
>>> include directories and libs are sorta scary.
>>>
>>> it looks like install puts what one would need into the installed  
>>> area. has anyone had any luck using this? ...
>>
>> ---
>> vice-chair http://ocjug.org/
>
>
> _______________________________________________
> IGSTK-Users mailing list
> IGSTK-Users at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users




More information about the IGSTK-Users mailing list