-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (22 loc) · 913 Bytes
/
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
# CMake's configuration
# Set the minimum required version of CMake for this project
cmake_minimum_required(VERSION 2.6)
# Set the compiler flags
add_definitions(-Wall -ansi -pedantic -pedantic-errors -std=c++11)
# Find dependencies
find_package(RpiHw REQUIRED)
find_package(Freetype REQUIRED)
find_package(Boost REQUIRED)
# Set the path to the header files
include_directories(${RpiHw_INCLUDE_DIRS})
include_directories(${MYSQLCPPCONN_SOURCE_DIR})
include_directories(${Boost_INCLUDE_DIRS})
# Add librares
add_library(mysql mysql.cpp)
add_library(functions functions.cpp)
add_library(classes classes.cpp)
# Build
add_executable(DeltaPi DeltaPi.cpp)
add_executable(EpsilonPi EpsilonPi.cpp)
target_link_libraries(DeltaPi classes functions mysql mysqlcppconn ${RpiHw_LIBRARIES} ${Boost_LIBRARIES})
target_link_libraries(EpsilonPi classes functions mysql mysqlcppconn ${RpiHw_LIBRARIES} ${Boost_LIBRARIES})