-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
27 lines (23 loc) · 1.16 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
include_directories(include)
set(hardcoded_dependencies_dir ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
add_library(mypinreader src/MyPinReader.cpp)
add_library(myinterruptservicemanager src/MyInterruptServiceManager.cpp)
add_library(directionlessodometer src/DirectionlessOdometer.cpp)
# After refactoring this would be removed
target_link_libraries(directionlessodometer PRIVATE myinterruptservicemanager)
add_library(directionalodometer src/DirectionalOdometer.cpp)
# After refactoring these would be removed
target_link_libraries(directionalodometer PRIVATE directionlessodometer)
target_link_libraries(directionalodometer PRIVATE mypinreader)
add_executable(HardcodedDependenciesBefore src/HardcodedDependenciesBefore.cpp)
target_link_libraries(HardcodedDependenciesBefore PRIVATE
directionlessodometer
directionalodometer)
add_library(pulsestometerencoder src/PulsesToMetersEncoder.cpp)
add_executable(HardcodedDependenciesAfter src/HardcodedDependenciesAfter.cpp)
target_link_libraries(HardcodedDependenciesAfter PRIVATE
mypinreader
myinterruptservicemanager
pulsestometerencoder
directionlessodometer
directionalodometer)