diff --git a/cmake/after_load_conf.cmake b/cmake/after_load_conf.cmake index 2e682cb..3ed0075 100644 --- a/cmake/after_load_conf.cmake +++ b/cmake/after_load_conf.cmake @@ -7,5 +7,7 @@ CU_ADD_HOOK(AFTER_GAME_LIBRARY "${CMAKE_MOD_ELUNA_ENGINE_DIR}/cmake/after_gs_ins CU_ADD_HOOK(BEFORE_SCRIPTS_LIBRARY "${CMAKE_MOD_ELUNA_ENGINE_DIR}/cmake/before_script_install.cmake") CU_ADD_HOOK(AFTER_WORLDSERVER_CMAKE "${CMAKE_MOD_ELUNA_ENGINE_DIR}/cmake/after_ws_install.cmake") +AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/mod_LuaEngine.conf.dist") + message("** [Eluna Module] LuaEngine is enable!") diff --git a/cmake/after_ws_install.cmake b/cmake/after_ws_install.cmake index 91bbc6f..c2912ab 100644 --- a/cmake/after_ws_install.cmake +++ b/cmake/after_ws_install.cmake @@ -4,19 +4,3 @@ include_directories( ${CMAKE_MOD_ELUNA_ENGINE_DIR}/LuaEngine ${CMAKE_MOD_ELUNA_ENGINE_DIR}/lualib ) - -if( WIN32 ) - if ( MSVC ) - add_custom_command(TARGET worldserver - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_MOD_ELUNA_ENGINE_DIR}/conf/mod_LuaEngine.conf.dist" ${CMAKE_BINARY_DIR}/bin/$(ConfigurationName)/ - ) - elseif ( MINGW ) - add_custom_command(TARGET worldserver - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_MOD_ELUNA_ENGINE_DIR}/conf/mod_LuaEngine.conf.dist" ${CMAKE_BINARY_DIR}/bin/ - ) - endif() -endif() - -install(FILES "${CMAKE_MOD_ELUNA_ENGINE_DIR}/conf/mod_LuaEngine.conf.dist" DESTINATION ${CONF_DIR}) \ No newline at end of file