Directory layout change
- Z21 Arduino library is moved to "z21library" subdir - Arduino compatibility code is moved to "arduino_compat" subdir
This commit is contained in:
parent
10a67bf9e2
commit
606b4ba00c
|
@ -24,11 +24,14 @@ set(PROJECT_SOURCES
|
||||||
z21.h
|
z21.h
|
||||||
z21.cpp
|
z21.cpp
|
||||||
|
|
||||||
arduinocompat.h
|
arduino_compat/WProgram.h
|
||||||
arduinocompat.cpp
|
arduino_compat/EEPROM.h
|
||||||
|
arduino_compat/arduinocompat.h
|
||||||
|
arduino_compat/arduinocompat.cpp
|
||||||
|
|
||||||
WProgram.h
|
z21library/z21header.h
|
||||||
EEPROM.h
|
z21library/z21.h
|
||||||
|
z21library/z21.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
||||||
|
@ -54,6 +57,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(Z21ServerEmulator PRIVATE z21library arduino_compat)
|
||||||
|
|
||||||
target_link_libraries(Z21ServerEmulator PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Network)
|
target_link_libraries(Z21ServerEmulator PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Network)
|
||||||
|
|
||||||
set_target_properties(Z21ServerEmulator PROPERTIES
|
set_target_properties(Z21ServerEmulator PROPERTIES
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
* This header is provided to use Z21 Library without source modifications
|
* This header is provided to use Z21 Library without source modifications
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "arduinocompat.h"
|
#include "arduino_compat/arduinocompat.h"
|
||||||
|
|
||||||
#endif // EEPROM_H
|
#endif // EEPROM_H
|
|
@ -6,6 +6,6 @@
|
||||||
* This header is provided to use Z21 Library without source modifications
|
* This header is provided to use Z21 Library without source modifications
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "arduinocompat.h"
|
#include "arduino_compat/arduinocompat.h"
|
||||||
|
|
||||||
#endif // WPROGRAM_H
|
#endif // WPROGRAM_H
|
Loading…
Reference in New Issue