CMakeLists.txt 508 B

123456789101112131415161718192021
  1. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  2. set(CMAKE_AUTOMOC ON)
  3. set(CMAKE_AUTORCC ON)
  4. find_package(Qt5 COMPONENTS Core CONFIG REQUIRED)
  5. file(GLOB HEADERS
  6. universallistmodelbase.h
  7. universallistmodel.h
  8. )
  9. file(GLOB SOURCES
  10. universallistmodelbase.cpp
  11. universallistmodel.cpp
  12. )
  13. # headers added to make them visible in IDE
  14. add_library(examples_common ${SOURCES} ${HEADERS})
  15. target_include_directories(examples_common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  16. target_link_libraries(examples_common Qt5::Core)