/usr/lib/cmake/grantlee/GrantleeUse.cmake is in libgrantlee-dev 0.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # Set up the include directories and link directories
include_directories(${Grantlee_INCLUDE_DIRS})
# Set up the deps needed to use Grantlee
include(${QT_USE_FILE})
# Add the Grantlee modules directory to the CMake module path
set(CMAKE_MODULE_PATH ${Grantlee_MODULE_DIR} ${CMAKE_MODULE_PATH})
include(GrantleeParseArguments)
macro(GRANTLEE_ADD_PLUGIN pluginname)
set(options)
set(oneValueArgs)
set(multiValueArgs TAGS FILTERS)
grantlee_parse_arguments(_PLUGIN "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
foreach(_filename ${_PLUGIN_UNPARSED_ARGUMENTS})
get_source_file_property(_skip ${_filename}.h SKIP_AUTOMOC)
if (NOT _skip)
set(_headers ${_headers} ${_filename}.h)
endif()
set(_sources ${_sources} ${_filename}.cpp)
endforeach()
foreach(_filename ${_PLUGIN_TAGS})
set(_headers ${_headers} ${_filename}.h)
set(_sources ${_sources} ${_filename}.cpp)
endforeach()
foreach(_filename ${_PLUGIN_FILTERS})
set(_sources ${_sources} ${_filename}.cpp)
endforeach()
qt4_wrap_cpp(_plugin_moc_srcs ${_headers})
add_library(${pluginname} MODULE ${_sources} ${_plugin_moc_srcs})
foreach(file ${_sources})
set(_sources_FULLPATHS ${_sources_FULLPATHS} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
endforeach()
set_property(GLOBAL APPEND PROPERTY SOURCE_LIST
${_sources_FULLPATHS}
)
set_target_properties(${pluginname}
PROPERTIES PREFIX ""
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/grantlee/${Grantlee_VERSION_MAJOR}.${Grantlee_VERSION_MINOR}"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/grantlee/${Grantlee_VERSION_MAJOR}.${Grantlee_VERSION_MINOR}"
)
target_link_libraries(${pluginname}
grantlee_core
)
endmacro(GRANTLEE_ADD_PLUGIN)
|