1 Star 1 Fork 0

bluesubmarine/wxfreechart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.49 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 2.8)
project(wxfreechart CXX)
set(CMAKE_BUILD_TYPE "Release")
set(wxfreechart_MAJOR_VERSION 1)
set(wxfreechart_MINOR_VERSION 4)
set(wxfreechart_PATCH_VERSION 0)
set(wxfreechart_VERSION
${wxfreechart_MAJOR_VERSION}.${wxfreechart_MINOR_VERSION}.${wxfreechart_PATCH_VERSION})
# Offer the user the choice of overriding the installation directories
set(wxfreechart_INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries" )
set(wxfreechart_INSTALL_BIN_DIR bin CACHE PATH "Installation directory for executables" )
set(wxfreechart_INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")
set(wxfreechart_INSTALL_CMAKE_DIR cmake CACHE PATH "Installation directory for CMake files")
# Make relative paths absolute (needed later on)
foreach(p LIB BIN INCLUDE CMAKE)
set(var wxfreechart_INSTALL_${p}_DIR)
if(NOT IS_ABSOLUTE "${${var}}")
set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
endif()
endforeach()
# set up include-directories
include_directories(include)
add_subdirectory(sample)
add_subdirectory(src)
# Add all targets to the build-tree export set
export(TARGETS wxfreechart FILE "${PROJECT_BINARY_DIR}/wxfreechart-targets.cmake")
# Export the package for use from the build-tree
# (this registers the build-tree with a global CMake-registry)
export(PACKAGE wxfreechart)
# Create the wxfreechart-config.cmake and wxfreechart-config-version files
file(RELATIVE_PATH REL_INCLUDE_DIR "${wxfreechart_INSTALL_CMAKE_DIR}" "${wxfreechart_INSTALL_INCLUDE_DIR}")
# ... for the build tree
set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/include")
configure_file(wxfreechart-config.cmake.in "${PROJECT_BINARY_DIR}/wxfreechart-config.cmake" @ONLY)
# ... for the install tree
set(CONF_INCLUDE_DIRS "${wxfreechart_INSTALL_INCLUDE_DIR}/wxfreechart")
configure_file(wxfreechart-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/wxfreechart-config.cmake" @ONLY)
# ... for both
configure_file(wxfreechart-config-version.cmake.in "${PROJECT_BINARY_DIR}/wxfreechart-config-version.cmake" @ONLY)
# Install the wxfreechart-config.cmake and wxfreechart-config-version.cmake
install(FILES
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/wxfreechart-config.cmake"
"${PROJECT_BINARY_DIR}/wxfreechart-config-version.cmake"
DESTINATION "${wxfreechart_INSTALL_CMAKE_DIR}" COMPONENT dev)
# Install the export set for use with the install-tree
install(EXPORT wxfreechart-targets DESTINATION
"${wxfreechart_INSTALL_CMAKE_DIR}" COMPONENT dev)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/lukeson/wxfreechart.git
[email protected]:lukeson/wxfreechart.git
lukeson
wxfreechart
wxfreechart
master

搜索帮助