Merge branch 'cmake' of https://github.com/jackoalan/PrimeWorldEditor into cmake
This commit is contained in:
commit
0c68d8e3df
|
@ -57,7 +57,7 @@ They should be set to `C:/Qt/<QT VERSION>/msvc2017_64/lib/cmake/Qt5`.
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* [Xcode 10.2+](https://developer.apple.com/xcode/)
|
* [Xcode 10.2+](https://developer.apple.com/xcode/)
|
||||||
* [Qt 5.10+](https://download.qt.io/official_releases/qt/) (Clang 64-bit specification)
|
* [Qt 5.10+](https://download.qt.io/official_releases/qt/) (macOS specification)
|
||||||
* *cmake*, *ninja* and *python* installed using [Homebrew](https://brew.sh/)
|
* *cmake*, *ninja* and *python* installed using [Homebrew](https://brew.sh/)
|
||||||
|
|
||||||
## Build using Xcode
|
## Build using Xcode
|
||||||
|
@ -83,7 +83,7 @@ They should be set to `C:/Qt/<QT VERSION>/msvc2017_64/lib/cmake/Qt5`.
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* A working compiler toolchain (GCC or Clang)
|
* A working compiler toolchain (GCC or Clang)
|
||||||
* *cmake*, *ninja*, *python3*, *clang* (library) packages
|
* *cmake*, *ninja*, *python3*, *qt5* (dev), *clang* (dev) packages
|
||||||
|
|
||||||
## Build using Command Line
|
## Build using Command Line
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,9 @@ function(integrate_dew)
|
||||||
message(FATAL_ERROR "Failed to install dew with pip: result: ${install_dew_result}.")
|
message(FATAL_ERROR "Failed to install dew with pip: result: ${install_dew_result}.")
|
||||||
endif()
|
endif()
|
||||||
message(STATUS "Building dew dependencies")
|
message(STATUS "Building dew dependencies")
|
||||||
execute_process(COMMAND "${Python3_EXECUTABLE}" -m dew update WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
execute_process(COMMAND "${Python3_EXECUTABLE}" -m dew update WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||||
RESULT_VARIABLE dew_res)
|
RESULT_VARIABLE dew_res)
|
||||||
if(NOT ${dew_res} EQUAL 0)
|
if(NOT dew_res EQUAL 0)
|
||||||
message(FATAL_ERROR "Unable to run dew: ${dew_res}")
|
message(FATAL_ERROR "Unable to run dew: ${dew_res}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -364,7 +364,7 @@ void CEditorApplication::OnEditorClose()
|
||||||
|
|
||||||
if (pEditor != mpWorldEditor->TweakEditor())
|
if (pEditor != mpWorldEditor->TweakEditor())
|
||||||
{
|
{
|
||||||
delete pEditor;
|
pEditor->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mpActiveProject)
|
if (mpActiveProject)
|
||||||
|
|
Loading…
Reference in New Issue