CMakeLists.txt 457 B

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