No subject


Mon Dec 15 09:51:36 EST 2008


"The PROGRAMS form is identical to the FILES form except that the default
permissions for the installed file also include OWNER_EXECUTE,
GROUP_EXECUTE, and WORLD_EXECUTE. This form is intended to install programs
that are not targets, such as shell scripts. Use the TARGETS form to install
targets built within the project."


Try INSTALL(TARGETS qfrt RUNTIME DESTINATION bin).  This is assuming your
qfrt executable is being created by add_executable(qfrt ...)

Unlike the Makefile generator, the Visual Studio generator for CMake doesn't
output "qfrt" in ${PROJECT_BINARY_DIR}/bin so CMake can't find it.

-- 
Philip Lowman

--00163646d1b8a30f3a0464eae487
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Thu, Mar 12, 2009 at 3:43 AM, Kermit Mei <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:kermit.mei at gmail.com">kermit.mei at gmail.=
com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"bor=
der-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-=
left: 1ex;">
Hello, I use the cmake-command on unix and it works well, but. But<br>
Windows, it told me that:<br>
<br>
CMake Error at src/gui/CMakeLists.txt:99 (INSTALL):<br>
 =A0 =A0install Library TARGETS given no DESTINATION!<br>
<br>
The INSTLL in CmakeLists.txt is like this:<br>
INSTALL(PROGRAMS ${PROJECT_BINARY_DIR}/bin/qfrt DESTINATION bin)</blockquot=
e><div><br>From the documentation about PROGRAMS mode:<br><br>&quot;The PRO=
GRAMS form is identical to the FILES form except that the
default permissions for the installed file also include OWNER_EXECUTE,
GROUP_EXECUTE, and WORLD_EXECUTE. This form is intended to install
programs that are not targets, such as shell scripts. Use the TARGETS
form to install targets built within the project.&quot;<br><br><br>Try INST=
ALL(TARGETS qfrt RUNTIME DESTINATION bin).=A0 This is assuming your qfrt ex=
ecutable is being created by add_executable(qfrt ...)<br><br> Unlike the Ma=
kefile generator, the Visual Studio generator for CMake doesn&#39;t output =
&quot;qfrt&quot; in ${PROJECT_BINARY_DIR}/bin so CMake can&#39;t find it.<b=
r>
</div></div><br>-- <br>Philip Lowman<br>

--00163646d1b8a30f3a0464eae487--


More information about the CMake mailing list