dolphin/Source/PCH/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
260 B
CMake
Raw Normal View History

2019-05-15 17:28:04 +00:00
add_library(pch pch.h pch.cpp)
set(PCH_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set(PCH_NAME ${PCH.pch})
target_compile_options(pch PUBLIC /Ycpch.h /Fp${PCH_DIRECTORY}/${PCH_NAME})
# fmt/format.h is included in the PCH
target_link_libraries(pch PUBLIC fmt::fmt)