]> git.tdb.fi Git - ext/openal.git/blob - utils/alsoft-config/CMakeLists.txt
Import OpenAL Soft 1.23.1 sources
[ext/openal.git] / utils / alsoft-config / CMakeLists.txt
1 project(alsoft-config)
2
3 if(Qt5Widgets_FOUND)
4     qt5_wrap_ui(UIS  mainwindow.ui)
5
6     qt5_wrap_cpp(MOCS  mainwindow.h)
7
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 Qt5::Widgets)
16     target_include_directories(alsoft-config PRIVATE "${alsoft-config_BINARY_DIR}"
17         "${OpenAL_BINARY_DIR}")
18     set_target_properties(alsoft-config PROPERTIES ${DEFAULT_TARGET_PROPS}
19         RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
20     if(TARGET build_version)
21         add_dependencies(alsoft-config build_version)
22     endif()
23
24     message(STATUS "Building configuration program")
25
26     if(ALSOFT_INSTALL_UTILS)
27         install(TARGETS alsoft-config
28             RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
29             LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
30             ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
31     endif()
32 endif()