v3d_macros.cmake

来自「A version of a sparse bundle adjustment 」· CMAKE 代码 · 共 42 行

CMAKE
42
字号
# -*- CMake -*-macro (enable_feature feature)  set (${feature} 1)  add_definitions(-D${feature})endmacro (enable_feature)macro (enable_conditional_feature feature dep_feature)  if (${dep_feature})    set (${feature} 1)    add_definitions(-D${feature})  endif (${dep_feature})endmacro (enable_conditional_feature)macro (enable_feature_inc_path feature)  if (${feature})    set (EXTRA_INC_DIRS ${EXTRA_INC_DIRS} ${ARGN})  endif (${feature})endmacro (enable_feature_inc_path)macro (enable_feature_lib_path feature)  if (${feature})    set (EXTRA_LIB_DIRS ${EXTRA_LIB_DIRS} ${ARGN})  endif (${feature})endmacro (enable_feature_lib_path)macro (enable_feature_libraries feature)  if (${feature})    set (EXTRA_LIBRARIES ${EXTRA_LIBRARIES} ${ARGN})  endif (${feature})endmacro (enable_feature_libraries)macro (add_v3d_executable target)  add_executable(${target} ${ARGN})  add_dependencies(${target} V3D)endmacro (add_v3d_executable)macro (add_simple_v3d_executable target)  add_executable(${target} ${target}.cpp)  add_dependencies(${target} V3D)endmacro (add_simple_v3d_executable)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?