mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
add precompiled header build to cmake to speed up building
This commit is contained in:
parent
60a7fe17b5
commit
a766f5951d
2 changed files with 3395 additions and 0 deletions
|
@ -26,6 +26,7 @@ EndIf()
|
|||
|
||||
set(CMAKE_MODULE_PATH "${RPCS3_SRC_DIR}/cmake_modules")
|
||||
set(EXECUTABLE_OUTPUT_PATH "${RPCS3_SRC_DIR}/../bin") # TODO: do real installation, including copying directory structure
|
||||
include(cotire)
|
||||
|
||||
add_definitions(-DGL_GLEXT_PROTOTYPES)
|
||||
add_definitions(-DGLX_GLXEXT_PROTOTYPES)
|
||||
|
@ -81,3 +82,5 @@ add_executable(rpcs3 ${RPCS3_SRC})
|
|||
|
||||
target_link_libraries(rpcs3 "${CMAKE_CURRENT_BINARY_DIR}/asmjit/asmjit.a" ${wxWidgets_LIBRARIES} ${OPENAL_LIBRARY} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES} libavformat.a libavcodec.a libavutil.a libswresample.a libswscale.a ${ZLIB_LIBRARIES})
|
||||
|
||||
set_target_properties(MyExecutable PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "${RPCS3_SRC_DIR}/stdafx.h")
|
||||
cotire(rpcs3)
|
||||
|
|
3392
rpcs3/cmake_modules/cotire.cmake
Normal file
3392
rpcs3/cmake_modules/cotire.cmake
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue