-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
speeds up compilation
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,15 @@ | ||
option(AH_FAST_COMPILE "Compile only necessary files" On) | ||
|
||
if (AH_FAST_COMPILE) | ||
set(Arduino_Helpers_SOURCES | ||
"PrintStream/PrintStream.cpp" | ||
"Debug/Debug.cpp" | ||
"Hardware/IncrementDecrementButtons.cpp" | ||
"Hardware/Button.cpp" | ||
"Hardware/IncrementButton.cpp" | ||
"Hardware/ExtendedInputOutput/ShiftRegisterOutRGB.cpp" | ||
"Hardware/ExtendedInputOutput/ExtendedIOElement.cpp" | ||
"Hardware/ExtendedInputOutput/ExtendedInputOutput.cpp" | ||
"Error/Exit.cpp" | ||
"Math/Vector.cpp" | ||
"Math/Quaternion.cpp" | ||
) | ||
else () | ||
file(GLOB_RECURSE | ||
Arduino_Helpers_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) | ||
endif () | ||
|
||
file(GLOB_RECURSE | ||
Arduino_Helpers_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) | ||
add_library(Arduino_Helpers ${Arduino_Helpers_SOURCES}) | ||
target_include_directories(Arduino_Helpers | ||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..) | ||
|
||
if (AH_FAST_COMPILE) | ||
target_compile_definitions(Arduino_Helpers | ||
PUBLIC | ||
-DNO_DEBUG_PRINTS | ||
-DANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2) | ||
else () | ||
target_compile_definitions(Arduino_Helpers | ||
PUBLIC | ||
#-DNO_DEBUG_PRINTS | ||
-DTEST_COMPILE_ALL_HEADERS_SEPARATELY | ||
-DANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2) | ||
endif () | ||
target_compile_definitions(Arduino_Helpers PUBLIC | ||
NO_DEBUG_PRINTS | ||
ANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2) | ||
|
||
target_link_libraries(Arduino_Helpers | ||
PUBLIC ArduinoMock | ||
PRIVATE Arduino-Helpers::warnings) | ||
PRIVATE Arduino-Helpers::warnings) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.