代码拉取完成,页面将自动刷新
同步操作将从 极简美/mult_timer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.24)
#Component name, default the same as directory name
get_filename_component(component_dir ${CMAKE_PARENT_LIST_FILE} DIRECTORY)
get_filename_component(component_name ${component_dir} NAME)
project(${component_name})
unset(COMPONENT_NAME)
set(COMPONENT_NAME simpost_timer)
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/output/${CMAKE_BUILD_TYPE}")
include(${CMAKE_BINARY_DIR}/conan/conanbuildinfo.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/commit.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/option.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cpack.cmake)
conan_basic_setup()
if(NOT DEFINED BUILD_STATIC_LIBS)
set(BUILD_STATIC_LIBS ON)
endif()
if(NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ON)
endif()
if(NOT DEFINED BUILD_EXAMPLES)
set(BUILD_EXAMPLES ON)
endif()
if(NOT DEFINED BUILD_TESTS)
set(BUILD_TESTS ON)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug | Release." FORCE)
endif()
add_subdirectory(source)
if(${BUILD_EXAMPLES} STREQUAL "ON")
add_subdirectory(example)
endif()
if(${BUILD_TESTS} STREQUAL "ON")
add_subdirectory(unittest)
endif()
######################################################################
# uninstall targget
if(NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。