70 lines
1.2 KiB
CMake
70 lines
1.2 KiB
CMake
|
|
project(shared)
|
|
|
|
set(${PROJECT_NAME}_NAMES
|
|
autobitmappedcheckbox
|
|
autobitmappedcombobox
|
|
autobitsetcheckbox
|
|
autocheckbox
|
|
autocollapsiblesection
|
|
autocombobox
|
|
autodoublespinbox
|
|
autohexspinbox
|
|
autolabel
|
|
autolineedit
|
|
autoprecisioncombobox
|
|
autoslider
|
|
autospinbox
|
|
autotimeedit
|
|
curveimagewidget
|
|
curvedialog
|
|
genericpanel
|
|
scrollarea
|
|
textvalidator
|
|
exclusivecombogroup
|
|
widgetbindings
|
|
)
|
|
|
|
AddHeadersSources()
|
|
|
|
# these have no cpp
|
|
set(${PROJECT_NAME}_HDRS
|
|
${${PROJECT_NAME}_HDRS}
|
|
namevalidator.h
|
|
labelvalidator.h
|
|
)
|
|
|
|
# AUTOMOC does not detect so manually process
|
|
qt_wrap_cpp(${PROJECT_NAME}_SRCS
|
|
${${PROJECT_NAME}_HDRS}
|
|
)
|
|
|
|
# add after moc generation to stop warnings
|
|
set(${PROJECT_NAME}_SRCS
|
|
${${PROJECT_NAME}_SRCS}
|
|
autowidget.h
|
|
autowidget.cpp
|
|
curveimage.h
|
|
curveimage.cpp
|
|
semanticversion.h
|
|
semanticversion.cpp
|
|
)
|
|
|
|
add_library(${PROJECT_NAME}
|
|
${${PROJECT_NAME}_SRCS}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE
|
|
${CPN_COMMON_LIB}
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE
|
|
"${CMAKE_SOURCE_DIR}"
|
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
|
"${maxLibQt_SOURCE_DIR}/widgets"
|
|
PUBLIC
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
|
)
|