klog-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Klog-users] build klog on Gentoo - FindHamlib.cmake


From: Jaime Robles
Subject: Re: [Klog-users] build klog on Gentoo - FindHamlib.cmake
Date: Sun, 30 May 2010 21:58:16 +0200

Great George!
I will try to test it as soon as I get a minute!

THANK YOU!!

Jaime

El 30/05/2010, a las 20:34, "George L. Emigh" <address@hidden> escribió:

This should work for any distribution of linux.
FindHamlib.cmake is attached.

diff -ru klog-0.5.5 klog-0.5.5-fix
Only in klog-0.5.5-fix/cmake: FindHamlib.cmake
diff -ru klog-0.5.5/CMakeLists.txt klog-0.5.5-fix/CMakeLists.txt
--- klog-0.5.5/CMakeLists.txt   2010-05-16 06:12:01.000000000 -0400
+++ klog-0.5.5-fix/CMakeLists.txt 2010-05-30 14:16:23.891703609 -0400
@@ -6,7 +6,9 @@
find_package(KDE4 REQUIRED)
include (KDE4Defaults)

-include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
+find_package(Hamlib REQUIRED)
+
+include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} $ {HAMLIB_INCLUDE_DIR} )

add_subdirectory( src )
add_subdirectory( icons )
diff -ru klog-0.5.5/src/CMakeLists.txt klog-0.5.5-fix/src/ CMakeLists.txt --- klog-0.5.5/src/CMakeLists.txt 2010-05-16 06:12:01.000000000 -0400 +++ klog-0.5.5-fix/src/CMakeLists.txt 2010-05-30 14:26:45.867708723 -0400
@@ -28,11 +28,12 @@
qt4_add_resources (klog_SRCS ../klog-resources.qrc )
kde4_add_executable(klog ${klog_SRCS})

-target_link_libraries(klog ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS} hamlib)
+target_link_libraries(klog ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS}
${HAMLIB_LIBRARY})

install(TARGETS klog DESTINATION ${BIN_INSTALL_DIR})
#install( FILES klogui.rc
#         DESTINATION  ${DATA_INSTALL_DIR}/klog )

install( FILES klog.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR} )
-install( FILES klogui.rc  DESTINATION  ${DATA_INSTALL_DIR}/klog )
\ No newline at end of file
+install( FILES klogui.rc  DESTINATION  ${DATA_INSTALL_DIR}/klog )
+

--
George L. Emigh - AB4BD
http://www.georgelemigh.com
<FindHamlib.cmake>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]