On 9/14/10 2:25 PM, Norman Rädke wrote:
I try to compile a c file to an cgi script.

The target add_executable only create an executable file,
but the output should be an cgi script with extension .cgi.

How can i only compile the objectfile of an .c source without
linking it into a a library.

Thanks

That should work fine. If your server requires that CGI applications end in .cgi, you can set this as follows, before your add_executable command:

set(CMAKE_EXECUTABLE_SUFFIX cgi)

A CGI application is not a script, it's a regular executable that is run by the server when accessing that URL.

Hope this helps!

Ryan
--

Ryan Pavlik
Human-Computer Interaction Graduate Student
Virtual Reality Applications Center
Iowa State University

http://academic.cleardefinition.com/

_______________________________________________
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

Reply via email to