[CMake] cgi sript compile
Ryan Pavlik
rpavlik at iastate.edu
Tue Sep 14 16:09:48 EDT 2010
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/
More information about the CMake
mailing list