CMakeLists.txt 417 B

1234567891011121314151617
  1. # Define the current source locations
  2. SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/db)
  3. SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/db)
  4. FILE ( GLOB DB_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
  5. add_library(database
  6. ${DB_SOURCES}
  7. )
  8. target_link_libraries(database
  9. hyperion
  10. hyperion-utils
  11. Qt${QT_VERSION_MAJOR}::Core
  12. Qt${QT_VERSION_MAJOR}::Sql
  13. )