diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fc48ad28..403d5638a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,11 +487,13 @@ if(CMAKE_HOST_WIN32 OR CYGWIN OR MSYS) set(TFEL_CONF_DIR "/${conf}") configure_file(env-win32.sh.in env-${conf}.sh @ONLY) configure_file(env-win32.bat.in env-${conf}.bat @ONLY) + configure_file(env-win32.ps1.in env-${conf}.ps1 @ONLY) endforeach(conf ${CMAKE_CONFIGURATION_TYPES}) else(CMAKE_CONFIGURATION_TYPES) set(TFEL_CONF_DIR "") configure_file(env-win32.sh.in env.sh @ONLY) configure_file(env-win32.bat.in env.bat @ONLY) + configure_file(env-win32.ps1.in env.ps1 @ONLY) endif(CMAKE_CONFIGURATION_TYPES) endif(CMAKE_HOST_WIN32 OR CYGWIN OR MSYS) diff --git a/env-win32.ps1.in b/env-win32.ps1.in new file mode 100644 index 000000000..99bbe1f3f --- /dev/null +++ b/env-win32.ps1.in @@ -0,0 +1,13 @@ +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\mtest\src@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\mfront\src@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\NUMODIS@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Material@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Tests@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Math@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Utilities@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Exception@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Glossary@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\System@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\Config@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\PhysicalConstants@TFEL_CONF_DIR@;' + $env:Path +$env:Path = '@TFEL_BINARY_DIR_NATIVE_PATH@\src\UnicodeSupport@TFEL_CONF_DIR@;' + $env:Path