CMakeLists.txt 433 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(qttools ${SOURCES} ${HEADERS})
  14. target_include_directories(qttools PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  15. target_link_libraries(qttools Qt5::Core)