Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/macros.cmake
| Show First 20 Lines • Show All 1,214 Lines • ▼ Show 20 Lines | else() | ||||
| add_custom_command(TARGET ${target} | add_custom_command(TARGET ${target} | ||||
| POST_BUILD | POST_BUILD | ||||
| COMMAND ${SIGNTOOL_EXE} sign /f ${WINDOWS_CODESIGN_PFX} ${CODESIGNPASSWORD} $<TARGET_FILE:${target}> | COMMAND ${SIGNTOOL_EXE} sign /f ${WINDOWS_CODESIGN_PFX} ${CODESIGNPASSWORD} $<TARGET_FILE:${target}> | ||||
| VERBATIM | VERBATIM | ||||
| ) | ) | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||
| endmacro() | endmacro() | ||||
| MACRO(blender_precompile_headers target cpp header) | |||||
| if (MSVC) | |||||
| target_sources(${target} PRIVATE ${cpp} ${header}) | |||||
| set_target_properties(${target} PROPERTIES COMPILE_FLAGS "/Yu${header} /FI${header}") | |||||
| set_source_files_properties(${cpp} PROPERTIES COMPILE_FLAGS "/Yc${header}") | |||||
| endif() | |||||
| ENDMACRO() | |||||