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>