-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·73 lines (59 loc) · 1.73 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
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.3)
#project(wseink_cpp CXX)
project(wseink_cpp)
set(CMAKE_CXX_STANDARD 14)
if(UNIX AND NOT APPLE)
set(LINUX TRUE)
endif()
if(LINUX)
add_definitions(-DUSE_WIRINGPI_LIB=1)
add_definitions(-DRPI=1)
add_definitions(-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON)
find_library(wiringPi_LIB wiringPi)
else()
add_definitions(-DUSE_DEV_COUT=1)
set(wiringPi_LIB)
endif()
# set_source_files_properties(*.c PROPERTIES LANGUAGE CXX )
set(EINK_SRCS
c/lib/e-Paper/EPD_2in9.c
c/lib/e-Paper/EPD_2in9.h
c/lib/Config/Debug.h
c/lib/Config/DEV_Config.c
c/lib/Config/DEV_Config.h
# c/lib/Config/dev_hardware_SPI.c
# c/lib/Config/dev_hardware_SPI.h
c/lib/Config/RPI_sysfs_gpio.c
c/lib/Config/RPI_sysfs_gpio.h
## c/lib/Config/sysfs_gpio.c
## c/lib/Config/sysfs_gpio.h
# c/lib/Config/sysfs_software_spi.c
# c/lib/Config/sysfs_software_spi.h
# c/lib/Fonts/font8.c
# c/lib/Fonts/font12.c
# c/lib/Fonts/font12CN.c
# c/lib/Fonts/font16.c
# c/lib/Fonts/font20.c
# c/lib/Fonts/font24.c
# c/lib/Fonts/font24CN.c
# c/lib/Fonts/fonts.h
# c/lib/GUI/GUI_BMPfile.c
# c/lib/GUI/GUI_BMPfile.h
# c/lib/GUI/GUI_Paint.c
# c/lib/GUI/GUI_Paint.h
)
SET_SOURCE_FILES_PROPERTIES(${CFILES} PROPERTIES LANGUAGE CXX )
add_executable(wseink_cpp
${EINK_SRCS}
cpp/bitmap_display_2in9.cpp
cpp/bitmap_display_2in9.h
cpp/bitmap_image.cpp
cpp/bitmap_image.h
cpp/i_bitmap_display.h
cpp/main.cpp
)
target_include_directories(wseink_cpp PUBLIC
c/lib/Config
c/lib/GUI
)
target_link_libraries(wseink_cpp PUBLIC ${wiringPi_LIB})