Avoid using some LP types
[openal-soft.git] / utils / alsoft-config / CMakeLists.txt
blob37fd7ba5ac3fda5cafe07b796b14c02d933f50da
1 project(alsoft-config)
3 include_directories("${alsoft-config_BINARY_DIR}")
5 # Need Qt 4.8.0 or newer for the iconset theme attribute to work
6 find_package(Qt4 4.8.0 COMPONENTS QtCore QtGui)
7 if(QT4_FOUND)
8     include(${QT_USE_FILE})
10     set(alsoft-config_SRCS  main.cpp
11                             mainwindow.cpp
12         )
14     set(alsoft-config_UIS  mainwindow.ui)
15     QT4_WRAP_UI(UIS ${alsoft-config_UIS})
17     set(alsoft-config_MOCS  mainwindow.h)
18     QT4_WRAP_CPP(MOCS ${alsoft-config_MOCS})
20     add_executable(alsoft-config ${alsoft-config_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS})
21     target_link_libraries(alsoft-config ${QT_LIBRARIES})
22     set_property(TARGET alsoft-config APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS})
23     set_target_properties(alsoft-config PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OpenAL_BINARY_DIR})
24     if(TARGET build_version)
25         add_dependencies(alsoft-config build_version)
26     endif()
28     install(TARGETS alsoft-config
29             RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
30             LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
31             ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
32     )
33 endif()