[Kstars-devel] KDE/kdeedu/kstars/kstars/indi
Jasem Mutlaq
mutlaqja at ikarustech.com
Fri Apr 14 11:30:55 CEST 2006
SVN commit 529720 by mutlaqja:
I used ADD_CUSTOM_COMMAND to subsitute for install-exec-hook. Symbolic links for lx200generic are properly made now.
CCMAIL: kstars-devel at kde.org
M +15 -2 CMakeLists.txt
--- trunk/KDE/kdeedu/kstars/kstars/indi/CMakeLists.txt #529719:529720
@@ -201,8 +201,21 @@
target_link_libraries(lx200generic ${KDE4_KDECORE_LIBS} m )
-install_targets(/bin lx200generic )
+install_targets(/bin lx200generic)
+## Make symbolic links to lx200generic ##
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND rm ARGS -f ${KDE4_INSTALL_DIR}/bin/lx200classic)
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND ln ARGS -s lx200generic ${KDE4_INSTALL_DIR}/bin/lx200classic)
+
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND rm ARGS -f ${KDE4_INSTALL_DIR}/bin/lx200autostar)
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND ln ARGS -s lx200generic ${KDE4_INSTALL_DIR}/bin/lx200autostar)
+
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND rm ARGS -f ${KDE4_INSTALL_DIR}/bin/lx200_16)
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND ln ARGS -s lx200generic ${KDE4_INSTALL_DIR}/bin/lx200_16)
+
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND rm ARGS -f ${KDE4_INSTALL_DIR}/bin/lx200gps)
+ADD_CUSTOM_COMMAND(TARGET lx200generic POST_BUILD COMMAND ln ARGS -s lx200generic ${KDE4_INSTALL_DIR}/bin/lx200gps)
+
########### next target ###############
########### Celestron GPS ############
set(celestrongps_SRCS
@@ -213,7 +226,7 @@
kde4_add_executable(celestrongps ${celestrongps_SRCS} ${liblilxml_SRCS} ${libindicom_SRCS})
-target_link_libraries(celestrongps ${KDE4_KDECORE_LIBS} m )
+target_link_libraries(celestrongps ${KDE4_KDECORE_LIBS} m )
install_targets(/bin celestrongps )
More information about the Kstars-devel
mailing list