~ubuntu-branches/ubuntu/utopic/kde4libs/utopic

« back to all changes in this revision

Viewing changes to .pc/make_libkdeinit4_private.diff/cmake/modules/KDE4Macros.cmake

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-08-01 16:16:35 UTC
  • mfrom: (1.14.20)
  • Revision ID: package-import@ubuntu.com-20120801161635-qewual50h0fwfeju
Tags: 4:4.9.0a-0ubuntu1
New tar from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
      get_target_property(_executable ${_target_NAME} LOCATION )
593
593
 
594
594
      # use add_custom_target() to have the sh-wrapper generated during build time instead of cmake time
595
 
      add_custom_command(TARGET ${_target_NAME} POST_BUILD
596
 
         COMMAND ${CMAKE_COMMAND}
597
 
         -D_filename=${_executable}.shell -D_library_path_variable=${_library_path_variable}
598
 
         -D_ld_library_path="${_ld_library_path}" -D_executable=${_executable}
599
 
         -P ${KDE4_MODULE_DIR}/kde4_exec_via_sh.cmake
600
 
         )
 
595
      if (CMAKE_VERSION VERSION_GREATER 2.8.4)
 
596
         add_custom_command(TARGET ${_target_NAME} POST_BUILD
 
597
            COMMAND ${CMAKE_COMMAND}
 
598
            -D_filename=${_executable}.shell -D_library_path_variable=${_library_path_variable}
 
599
            -D_ld_library_path="${_ld_library_path}" -D_executable=$<TARGET_FILE:${_target_NAME}>
 
600
            -P ${KDE4_MODULE_DIR}/kde4_exec_via_sh.cmake
 
601
            )
 
602
      else ()
 
603
         add_custom_command(TARGET ${_target_NAME} POST_BUILD
 
604
            COMMAND ${CMAKE_COMMAND}
 
605
            -D_filename=${_executable}.shell -D_library_path_variable=${_library_path_variable}
 
606
            -D_ld_library_path="${_ld_library_path}" -D_executable=${_executable}
 
607
            -P ${KDE4_MODULE_DIR}/kde4_exec_via_sh.cmake
 
608
            )
 
609
      endif ()
601
610
 
602
611
      macro_additional_clean_files(${_executable}.shell)
603
612
 
830
839
    endif( ${ARGV1} STREQUAL "TESTNAME" )
831
840
    
832
841
    set(_nogui)
833
 
    list(GET ${_srcList} 0 first_PARAM)
 
842
    list(GET _srcList 0 first_PARAM)
834
843
    if( ${first_PARAM} STREQUAL "NOGUI" )
835
844
        set(_nogui "NOGUI")
836
845
    endif( ${first_PARAM} STREQUAL "NOGUI" )