Warning, /frameworks/kdelibs4support/cmake/modules/Win32Macros.cmake is written in an unsupported language. File is not indexed.
0001 # win32 macros 0002 # 0003 # ADDEXPLORERWRAPPER(project) 0004 # 0005 # Exists only under Win32 ! 0006 # 0007 # addExplorerWrapper creates batch files for fast access 0008 # to the build environment from the win32 explorer. 0009 # 0010 # For mingw and nmake projects it opens a command shell, 0011 # for Visual Studio IDE's (at least tested with VS 8 2005) it 0012 # opens the related .sln file with paths setting specified at 0013 # configure time. 0014 0015 # Copyright (c) 2006-2007, Ralf Habacker 0016 # 0017 # Redistribution and use is allowed according to the terms of the BSD license. 0018 0019 0020 if (WIN32) 0021 # 0022 MACRO (addExplorerWrapper _projectname) 0023 # write explorer wrappers 0024 get_filename_component(CMAKE_BIN_PATH ${CMAKE_COMMAND} PATH) 0025 set (ADD_PATH "${CMAKE_BIN_PATH}") 0026 0027 if (QT_QMAKE_EXECUTABLE) 0028 get_filename_component(QT_BIN_PATH ${QT_QMAKE_EXECUTABLE} PATH) 0029 set (ADD_PATH "${ADD_PATH};${QT_BIN_PATH}") 0030 endif (QT_QMAKE_EXECUTABLE) 0031 0032 # add here more pathes 0033 0034 if (MINGW) 0035 get_filename_component(MINGW_BIN_PATH ${CMAKE_CXX_COMPILER} PATH) 0036 set (ADD_PATH "${ADD_PATH};${MINGW_BIN_PATH}") 0037 write_file (${CMAKE_BINARY_DIR}/${_projectname}-shell.bat "set PATH=${ADD_PATH};%PATH%\ncmd.exe") 0038 else (MINGW) 0039 if (CMAKE_BUILD_TOOL STREQUAL "nmake") 0040 get_filename_component(VC_BIN_PATH ${CMAKE_CXX_COMPILER} PATH) 0041 write_file (${CMAKE_BINARY_DIR}/${_projectname}-shell.bat "set PATH=${ADD_PATH};%PATH%\ncall \"${VC_BIN_PATH}\\vcvars32.bat\"\ncmd.exe") 0042 else (CMAKE_BUILD_TOOL STREQUAL "nmake") 0043 write_file (${CMAKE_BINARY_DIR}/${_projectname}-sln.bat "set PATH=${ADD_PATH};%PATH%\nstart ${_projectname}.sln") 0044 endif (CMAKE_BUILD_TOOL STREQUAL "nmake") 0045 endif (MINGW) 0046 ENDMACRO (addExplorerWrapper) 0047 endif(WIN32)