Message: previous - next
Month: February 2011

converting applications/knemo to tde cmake - need a little help

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 20 Feb 2011 21:12:25 -0600

  I'm taking a stab at moving application/knemo to CMake. I'm new to cmake, but
given a reasonable outline of what to do, I'll bet I can slog through it. knemo
seems small enough to serve as a good package to learn with.

  What I need to know is "What is the basic outline for moving an existing kde
module to cmake?

  I can figure out I need a knemo/cmake directory with modules/TDEMacros.cmake
and a CMakeLists.txt, but after that I'm a bit lost.

  I have taken Serghei's kdewebdev CMakeLists.txt and I'm trying to cannibalize
it. I think most everything will work. There are additional line I don't think
I'll need in knemo since there are not any sub-packages like quanta. Can I just
delete the following?:

option( BUILD_QUANTA "Build quanta" ${BUILD_ALL} )
option( BUILD_KFILEREPLACE "Build kfilereplace" ${BUILD_ALL} )

 add_subdirectory( lib )
endif( )

tde_conditional_add_subdirectory( BUILD_QUANTA quanta )

  If I don't have subdirectories like quanta and I can just remove those lines,
that gets me started... But then the question becomes "what else to I need to
change in the knemo/cmake... directory?

  Here is my first run and the errors I got. I'll put my comments/questions in
the errors:

CMake Error at CMakeLists.txt:60 (include):
  include could not find load file:


## I get it, I need a ConfigureChecks.cmake. Can I just copy one? What kind of
## changes can I expect to need to make?

CMake Error: File /home/david/tbld/applications/knemo/config.h.cmake does not exist.
CMake Error at CMakeLists.txt:87 (configure_file):
  configure_file Problem configuring file

## Same issue, I know I'll need a config.h.cmake, what would be a good one to copy?

  That's about where I am on my cmake/knemo journey. If somebody has an outline
to get me going on the cmake conversions, I don't mind helping move the smaller
apps to cmake.

David C. Rankin, J.D.,P.E.