Home | History | Annotate | Download | only in cmake

Lines Matching full:_targetname

10 #   ADD_PRECOMPILED_HEADER  _targetName _input  _dowarn
11 # ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use _dowarn
12 # ADD_NATIVE_PRECOMPILED_HEADER _targetName _input _dowarn
13 # GET_NATIVE_PRECOMPILED_HEADER _targetName _input
92 MACRO(_PCH_WRITE_PCHDEP_CXX _targetName _include_file _dephelp)
94 SET(${_dephelp} ${CMAKE_CURRENT_BINARY_DIR}/${_targetName}_pch_dephelp.cxx)
180 MACRO(GET_PRECOMPILED_HEADER_OUTPUT _targetName _input _output)
184 SET(${_output} "${CMAKE_CURRENT_BINARY_DIR}/${_name}.gch/${_targetName}_${CMAKE_BUILD_TYPE}.gch")
186 ENDMACRO(GET_PRECOMPILED_HEADER_OUTPUT _targetName _input)
189 MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )
191 # to do: test whether compiler flags match between target _targetName
202 #MESSAGE("Add flags ${_target_cflags} to ${_targetName} " )
204 GET_TARGET_PROPERTY(_sources ${_targetName} SOURCES)
218 ADD_CUSTOM_TARGET(pch_Generate_${_targetName}
222 ADD_DEPENDENCIES(${_targetName} pch_Generate_${_targetName} )
226 MACRO(ADD_PRECOMPILED_HEADER _targetName _input)
228 SET(_PCH_current_target ${_targetName})
245 GET_PRECOMPILED_HEADER_OUTPUT( ${_targetName} ${_input} _output)
247 _PCH_WRITE_PCHDEP_CXX(${_targetName} "${_input}" _pch_dephelp_cxx)
249 ADD_LIBRARY(${_targetName}_pch_dephelp STATIC "${_pch_dephelp_cxx}" "${_input}" )
251 set_target_properties(${_targetName}_pch_dephelp PROPERTIES
258 get_target_property(type ${_targetName} TYPE)
260 get_target_property(__DEFINES ${_targetName} DEFINE_SYMBOL)
266 get_target_property(DIRINC ${_targetName} INCLUDE_DIRECTORIES)
267 set_target_properties(${_targetName}_pch_dephelp PROPERTIES INCLUDE_DIRECTORIES "${DIRINC}")
288 DEPENDS ${_targetName}_pch_dephelp
291 ADD_PRECOMPILED_HEADER_TO_TARGET(${_targetName} ${_input} ${_output} ${_dowarn})
298 # Using Visual, must also add ${_targetName}_pch to sources
301 MACRO(GET_NATIVE_PRECOMPILED_HEADER _targetName _input)
306 set(${_targetName}_pch ${CMAKE_CURRENT_BINARY_DIR}/${_targetName}_pch.cpp)
307 if(EXISTS ${${_targetName}_pch})
311 FILE(WRITE ${${_targetName}_pch} ${_dummy_str})
318 MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _input)
332 GET_TARGET_PROPERTY(oldProps ${_targetName} COMPILE_FLAGS)
338 SET_TARGET_PROPERTIES(${_targetName} PROPERTIES COMPILE_FLAGS "${newProperties}")
341 SET_SOURCE_FILES_PROPERTIES(${${_targetName}_pch} PROPERTIES COMPILE_FLAGS "${oldProps} /Yc\"${_input}\"")
352 SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "${fullPath}")
353 SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES")
358 #ADD_PRECOMPILED_HEADER(${_targetName} ${_input} ${_dowarn})