Lower the priority of the JACK backend
[openal-soft.git] / utils / alsoft-config / CMakeLists.txt
blob62d6e10dd74915e606f482ca0c88bff8e6952e71
1 project(alsoft-config)
3 if(Qt5Widgets_FOUND)
4     qt5_wrap_ui(UIS  mainwindow.ui)
6     qt5_wrap_cpp(MOCS  mainwindow.h)
8     add_executable(alsoft-config
9         main.cpp
10         mainwindow.cpp
11         mainwindow.h
12         verstr.cpp
13         verstr.h
14         ${UIS} ${RSCS} ${TRS} ${MOCS})
15     target_link_libraries(alsoft-config PUBLIC Qt5::Widgets PRIVATE alsoft.common)
16     target_include_directories(alsoft-config PRIVATE "${alsoft-config_BINARY_DIR}"
17         "${OpenAL_BINARY_DIR}")
18     target_compile_definitions(alsoft-config PRIVATE QT_NO_KEYWORDS)
19     set_target_properties(alsoft-config PROPERTIES ${DEFAULT_TARGET_PROPS}
20         RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
21     if(TARGET alsoft.build_version)
22         add_dependencies(alsoft-config alsoft.build_version)
23     endif()
25     message(STATUS "Building configuration program")
27     if(ALSOFT_INSTALL_UTILS)
28         install(TARGETS alsoft-config
29             RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
30             LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
31             ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
32     endif()
33 endif()