- install
download Cg Tool Kit from the following URL, and then install it.
http://developer.nvidia.com/object/cg_download.html
if you have not installed DirectX SDK, installation package recommends you to install it.
2. path setting
Include file -> C:\Program Files\NVIDIA Corporation\Cg\include\Cg
Library file -> C:\Program Files\NVIDIA Corporation\Cg\lib
Executable file -> C:\Program Files\NVIDIA Corporation\Cg\bin
3. additional dependencies
Project property -> Configuration Property -> Linker -> Input ->
Additional Dependencies
cg.lib, cgGL.lib
4. syntacs highlight
to color Cg's keyword,
copy usertype.dat in "C:\Program Files\NVIDIA Corporation\Cg\msdev_syntax_highlighting" to "...\Common7\IDE"
Then, boot VS and
Tool -> Option -> Text editor -> File Extension
add "cg" and reboot VS