Files
azerothcore-wotlk/src/scripts/Custom
Barbz efbcb8f65d Fix CMake custom script (#658)
* CMake - CMake now detects custom scripts in the Custom directory

* CMake - CMake now detects the custom script headers

* CMake - Added an example in the README on how to make a CMakeLists.txt for a custom script
2017-09-23 11:30:22 +02:00
..
2017-09-23 11:30:22 +02:00

Custom folder

Here you can create a CMakeLists.txt file where to add your custom scripts They will be git-ignored

Remember to use cmake macro inside your CMakeLists.txt to correctly add scripts to project solution.

BTW, We strongly suggest you to use our module system to create your custom powerful module instead of simple scripts.


CMakeLists.txt example:

set(scripts_STAT_SRCS ${scripts_STAT_SRCS} ${AC_SCRIPTS_DIR}/Custom/your_script.cpp ${AC_SCRIPTS_DIR}/Custom/your_script.h )

AC_ADD_SCRIPT_LOADER("Custom" "ScriptLoader.h")

message(" -> Prepared: My custom scripts")