CMakeLists.txt 546 B

1234567891011121314151617181920
  1. # Define the current source locations
  2. find_package(CEC REQUIRED)
  3. SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/cec)
  4. SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/cec)
  5. FILE (GLOB CEC_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp")
  6. add_library(cechandler ${CEC_SOURCES})
  7. list(GET CEC_LIBRARIES 0 CEC_LIBRARIES)
  8. add_definitions(-DCEC_LIBRARY="${CEC_LIBRARIES}")
  9. include_directories(${CEC_INCLUDE_DIRS})
  10. target_link_libraries(cechandler
  11. Qt${QT_VERSION_MAJOR}::Core
  12. ${CMAKE_DL_LIBS}
  13. )