+ add option to switch off precompiled header

This commit is contained in:
wmayer
2018-07-25 20:17:11 +02:00
parent 4c8e7fc7d0
commit 0260370b65
17 changed files with 49 additions and 28 deletions

View File

@@ -361,11 +361,11 @@ SET(Mesh_SRCS
Segment.h
)
if(MSVC)
if(BUILD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Core_SRCS} ${Mesh_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Mesh PreCompiled.h PreCompiled.cpp PCH_SRCS)
endif(MSVC)
endif(BUILD_USE_PCH)
add_library(Mesh SHARED ${Core_SRCS} ${WildMagic4_SRCS} ${Mesh_SRCS})
target_link_libraries(Mesh ${Mesh_LIBS})