From b190b964ae523a1f9244f53ac960b952d63daa5c Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 16 Jun 2008 22:05:02 +0000 Subject: -first search in KDE4_BIN_INSTALL_DIR, since this is most probably where rcgen is to find -lowercase find_program() -fix documentation format Alex CCMAIL: svn path=/trunk/KDE/kdelibs/; revision=821234 --- modules/NepomukMacros.cmake | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'modules') diff --git a/modules/NepomukMacros.cmake b/modules/NepomukMacros.cmake index 0e1fe45b..14acd2bb 100644 --- a/modules/NepomukMacros.cmake +++ b/modules/NepomukMacros.cmake @@ -1,13 +1,6 @@ # This file contains the following macros: # # NEPOMUK_GENERATE_FROM_ONTOLOGY -# - - -# -# NEPOMUK_GENERATE_FROM_ONTOLOGY -# (C) 2007 Sebastian Trueg -# # Parameters: # ontofile - Path to the NRL ontology defining the resources to be generated. # targetdir - Folder to which the generated sources should be written. @@ -19,13 +12,16 @@ # In addition to the parameters an arbitrary number of template filenames can be set as arguments # # In case of success NEPOMUK_RESOURCES_GENERATED is true, otherwise false -# + +# (C) 2007 Sebastian Trueg + + macro(NEPOMUK_GENERATE_FROM_ONTOLOGY ontofile targetdir out_headers out_sources out_includes) # init set(NEPOMUK_RESOURCES_GENERATED false) - FIND_PROGRAM(RCGEN nepomuk-rcgen PATHS ${BIN_INSTALL_DIR} NO_DEFAULT_PATH) + find_program(RCGEN nepomuk-rcgen PATHS ${KDE4_BIN_INSTALL_DIR} ${BIN_INSTALL_DIR} NO_DEFAULT_PATH) if(NOT RCGEN) -- cgit v1.2.1