mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Use precompiled headers for scripts and some libraries
This commit is contained in:
parent
aca7508d00
commit
b49cbc0644
4 changed files with 4059 additions and 1 deletions
|
@ -31,6 +31,7 @@ set(LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries")
|
||||||
include( "cmake/boost.cmake" )
|
include( "cmake/boost.cmake" )
|
||||||
include( "cmake/mysql.cmake" )
|
include( "cmake/mysql.cmake" )
|
||||||
include( "cmake/compiler.cmake" )
|
include( "cmake/compiler.cmake" )
|
||||||
|
include( "cmake/cotire.cmake" )
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Git #
|
# Git #
|
||||||
|
|
4055
cmake/cotire.cmake
Normal file
4055
cmake/cotire.cmake
Normal file
File diff suppressed because it is too large
Load diff
|
@ -64,3 +64,4 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
|
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
|
||||||
|
cotire( sapphire_zone )
|
||||||
|
|
|
@ -39,8 +39,9 @@ foreach(_scriptDir ${children})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
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)
|
target_link_libraries("script_${_name}" sapphire_zone)
|
||||||
|
cotire("script_${_name}")
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_link_libraries("script_${_name}" ${Boost_LIBRARIES})
|
target_link_libraries("script_${_name}" ${Boost_LIBRARIES})
|
||||||
|
|
Loading…
Add table
Reference in a new issue