-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt~
executable file
·62 lines (50 loc) · 1.24 KB
/
CMakeLists.txt~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#my great test using the cmake
#play it like play emacs
#EE:zhang [email protected]
#copyright:
cmake_minimum_required(VERSION 3.10)
if(WIN32)
message(STATUS "Windows is going on.")
elseif(UNIX)
message(STATUS "linux is going on.")
endif(WIN32)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
# set(CMAKE_OBJCOPY arm-none-eabi-objcopy)
# set(CMAKE_SIZE arm-none-eabi-size)
set(CMAKE_CC_FLAG "-g -Wall")
set(CMAKE_CXX_FLAG "-g -Wall")
set(CMAKE_BUILD_TYPE "Debug")
# set(CMAKE_BUILD_TYPE "Release")
project(test)
# app
set(HELLO_WORLD_APP 1)
set(STRUCTURE_APP 0)
set(TEST_0 0)
set(TEST_1 0)
set(TEST_2 0)
set(TEST_3 0)
set(TEST_4 0)
set(TEST_4 0)
# 复用插件
include(${PROJECT_SOURCE_DIR}/cmake/extentions.cmake)
#header files
include_directories(
# ${PROJECT_SOURCE_DIR}/app
# ${PROJECT_SOURCE_DIR}/bsp/inc
/usr/local/include
/usr/include
)
# flower_include_directories(
# ${PROJECT_SOURCE_DIR}/app
# )
# lib directories
link_directories(
${PROJECT_BINARY_DIR}/lib
)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
add_subdirectory(app)
# add_subdirectory(bsp)
# add_subdirectory(flib)
add_subdirectory(main)