CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. project(alsoft-config)
  2. if(Qt5Widgets_FOUND)
  3. qt5_wrap_ui(UIS mainwindow.ui)
  4. qt5_wrap_cpp(MOCS mainwindow.h)
  5. add_executable(alsoft-config
  6. main.cpp
  7. mainwindow.cpp
  8. mainwindow.h
  9. verstr.cpp
  10. verstr.h
  11. ${UIS} ${RSCS} ${TRS} ${MOCS})
  12. target_link_libraries(alsoft-config PUBLIC Qt5::Widgets PRIVATE alcommon)
  13. target_include_directories(alsoft-config PRIVATE "${alsoft-config_BINARY_DIR}"
  14. "${OpenAL_BINARY_DIR}")
  15. target_compile_definitions(alsoft-config PRIVATE QT_NO_KEYWORDS)
  16. set_target_properties(alsoft-config PROPERTIES ${DEFAULT_TARGET_PROPS}
  17. RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
  18. if(TARGET build_version)
  19. add_dependencies(alsoft-config build_version)
  20. endif()
  21. message(STATUS "Building configuration program")
  22. if(ALSOFT_INSTALL_UTILS)
  23. install(TARGETS alsoft-config
  24. RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
  25. LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  26. ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
  27. endif()
  28. endif()