Skip to content
Permalink
Browse files

Tidy up CMakeLists.txt

  • Loading branch information
stefanuhrig committed Jan 7, 2021
1 parent 04f43da commit e5e7b31e4838cc39446e015131c598031893f583
Showing with 22 additions and 4 deletions.
  1. +22 −4 src/providers/hana/CMakeLists.txt
@@ -32,18 +32,36 @@ IF (WITH_GUI)
ENDIF ()

SET(HANA_HDRS
qgshanacolumntypethread.h
qgshanaconnection.h
qgshanaconnectionpool.h
qgshanaconnectionstringbuilder.h
qgshanadriver.h
qgshanaexception.h
qgshanaexpressioncompiler.h
qgshanafeatureiterator.h
qgshanaprimarykeys.h
qgshanaprovider.h
qgshanaproviderconnection.h
qgshanaresultset.h
qgshanasettings.h
qgshanatablemodel.h
qgshanacrsutils.h
qgshanautils.h
)

IF (WITH_GUI)
SET(HANA_HDRS ${HANA_HDRS}
qgshanadataitems.h
qgshanadataitemguiprovider.h
qgshananewconnection.h
qgshanasourceselect.h
)
ENDIF ()

########################################################
# Build

QT5_WRAP_CPP(HANA_MOC_SRCS ${HANA_MOC_HDRS})

INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/core/auth
@@ -73,8 +91,8 @@ INCLUDE_DIRECTORIES (SYSTEM
${QTKEYCHAIN_INCLUDE_DIR}
)

ADD_LIBRARY(hanaprovider MODULE ${HANA_SRCS} ${HANA_HDRS} ${HANA_MOC_SRCS})
ADD_LIBRARY(hanaprovider_a STATIC ${HANA_SRCS} ${HANA_HDRS} ${HANA_MOC_SRCS})
ADD_LIBRARY(hanaprovider MODULE ${HANA_SRCS} ${HANA_HDRS})
ADD_LIBRARY(hanaprovider_a STATIC ${HANA_SRCS} ${HANA_HDRS})

TARGET_COMPILE_DEFINITIONS(hanaprovider PUBLIC ODBC_STATIC)
TARGET_COMPILE_DEFINITIONS(hanaprovider_a PUBLIC ODBC_STATIC)

0 comments on commit e5e7b31

Please sign in to comment.
You can’t perform that action at this time.