Merge remote-tracking branch elecpower/cpn-auto-widget into elecpower/cpn-refactor-gen-settings

This commit is contained in:
elecpower
2021-05-09 07:18:37 +10:00
7 changed files with 234 additions and 57 deletions
+14 -1
View File
@@ -1,5 +1,8 @@
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
set(shared_NAMES
autocheckbox
)
set(shared_SRCS
genericpanel.cpp
hexspinbox.cpp
@@ -8,7 +11,6 @@ set(shared_SRCS
set(shared_HDRS
autobitsetcheckbox.h
autocheckbox.h
autocombobox.h
autodoublespinbox.h
autohexspinbox.h
@@ -21,7 +23,18 @@ set(shared_HDRS
autoslider.h
)
foreach(name ${shared_NAMES})
set(shared_SRCS ${shared_SRCS} ${name}.cpp)
set(shared_HDRS ${shared_HDRS} ${name}.h)
endforeach()
qt5_wrap_cpp(shared_SRCS ${shared_HDRS})
# add after moc generation to stop warnings
set(shared_SRCS ${shared_SRCS}
autowidget.h
autowidget.cpp
)
add_library(shared ${shared_SRCS})
target_link_libraries(shared PRIVATE Qt5::Widgets ${CPN_COMMON_LIB})