~inkscape.dev/inkscape/cmakebuild

« back to all changes in this revision

Viewing changes to CMakeScripts/HelperMacros.cmake

  • Committer: Markus Engel
  • Date: 2014-08-10 14:28:23 UTC
  • Revision ID: markus.engel@tum.de-20140810142823-l3dexsvccu3s5pg3
Added CMakeLists.txt-files to subdirectories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
endmacro()
5
5
 
6
6
 
 
7
#### takes a list of filenames and prepends them with their absolute paths.
 
8
# prepends them with the name of the directory they are in...
 
9
function(prepend_dir_name files)
 
10
    foreach(file ${${files}})
 
11
        get_filename_component(current_dir ${CMAKE_CURRENT_SOURCE_DIR} NAME)
 
12
        set(modified ${modified} ${current_dir}/${file})
 
13
    endforeach()
 
14
    
 
15
    set(${files} ${modified} PARENT_SCOPE)
 
16
endfunction()
 
17
 
 
18
 
7
19
macro(inkscape_source_group
8
20
        sources)
9
21