码迷,mamicode.com
首页 > 其他好文 > 详细

CMake基本工程

时间:2018-10-21 22:28:25      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:fun   conf   func   lis   tor   aries   efi   configure   bsp   

CMakeLists.txt

cmake_minimum_required (VERSION 2.6)

project (Test)

set (Test_VERSION_MAJOR 1)

set (Test_VERSION_MINOR 0)

configure_file ( "${PROJECT_SOURCE_DIR}/TestConfig.h.in"

                     "${PROJECT_BINARY_DIR}/TestConfig.h" )

include_directories("${PROJECT_BINARY_DIR}")

add_executable(Test main.cpp)

target_link_libraries (Test MathFunctions)

 

TestConfig.h.in

#define Tutorial_VERSION_MAJOR @Tutorial_VERSION_MAJOR@

#define Tutorial_VERSION_MINOR @Tutorial_VERSION_MINOR@

CMake基本工程

标签:fun   conf   func   lis   tor   aries   efi   configure   bsp   

原文地址:https://www.cnblogs.com/lewis-18576760061/p/9827290.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!