1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

Use precompiled headers for scripts and some libraries

This commit is contained in:
Mordred Admin 2018-02-28 11:51:44 +01:00
parent aca7508d00
commit b49cbc0644
4 changed files with 4059 additions and 1 deletions

View file

@ -31,6 +31,7 @@ set(LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries")
include( "cmake/boost.cmake" )
include( "cmake/mysql.cmake" )
include( "cmake/compiler.cmake" )
include( "cmake/cotire.cmake" )
##############################
# Git #

4055
cmake/cotire.cmake Normal file

File diff suppressed because it is too large Load diff

View file

@ -64,3 +64,4 @@ else()
endif()
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
cotire( sapphire_zone )

View file

@ -39,8 +39,9 @@ foreach(_scriptDir ${children})
endif()
endforeach()
add_library("script_${_name}" MODULE "${SCRIPT_BUILD_FILES}" "${SCRIPT_INCLUDE_FILES}" "${_scriptDir}/ScriptLoader.cpp")
add_library("script_${_name}" MODULE ${SCRIPT_BUILD_FILES} "${SCRIPT_INCLUDE_FILES}" "${_scriptDir}/ScriptLoader.cpp")
target_link_libraries("script_${_name}" sapphire_zone)
cotire("script_${_name}")
if(MSVC)
target_link_libraries("script_${_name}" ${Boost_LIBRARIES})