new variables install_dir, run_elevated

replaced CMAKE_PROJECT_NAME with PROJECT_NAME, the former doesn't change when there are multiple projects
optional plugins for deploy_qt()
fixed gamebryo handling
added requires_library(), handles loot, cpptoml and python
This commit is contained in:
isanae
2020-04-25 00:53:33 -04:00
parent a5d109a1fa
commit d187ef06bd
8 changed files with 138 additions and 44 deletions
+6 -1
View File
@@ -1,11 +1,16 @@
cmake_minimum_required(VERSION 3.16)
include(${CMAKE_CURRENT_LIST_DIR}/python.cmake)
if(NOT DEFINED install_dir)
set(install_dir bin/plugins)
endif()
macro(do_project)
do_python_project()
endmacro()
macro(do_src)
install(FILES ${source_files} DESTINATION bin/plugins)
install(FILES ${source_files} DESTINATION ${install_dir})
endmacro()