klog-users
[Top][All Lists]
Advanced

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

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


From: George L. Emigh
Subject: [Klog-users] build klog on Gentoo - FindHamlib.cmake
Date: Sun, 30 May 2010 14:34:05 -0400
User-agent: KMail/1.13.3 (Linux/2.6.33-gentoo-r2; KDE/4.4.3; x86_64; ; )

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

Attachment: FindHamlib.cmake
Description: Text Data


reply via email to

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