Fix installing alsoft-config

This commit is contained in:
Chris Robinson
2020-04-15 00:09:45 -07:00
parent 8ef8b5e215
commit 3a5a9e90d0
2 changed files with 13 additions and 5 deletions
+4 -4
View File
@@ -1058,7 +1058,7 @@ endif()
IF(ALSOFT_UTILS AND NOT ALSOFT_NO_CONFIG_UTIL)
add_subdirectory(utils/alsoft-config)
find_package(Qt5Widgets)
ENDIF()
IF(ALSOFT_EXAMPLES)
FIND_PACKAGE(SndFile)
@@ -1345,9 +1345,9 @@ if(ALSOFT_UTILS)
target_link_libraries(sofa-info PRIVATE ${LINKER_FLAGS} sofa-support)
endif()
message(STATUS "Building utility programs")
if(TARGET alsoft-config)
set(UTIL_TARGETS ${UTIL_TARGETS} alsoft-config)
message(STATUS "Building configuration program")
if(NOT ALSOFT_NO_CONFIG_UTIL)
add_subdirectory(utils/alsoft-config)
endif()
message(STATUS "")
+9 -1
View File
@@ -1,6 +1,5 @@
project(alsoft-config)
find_package(Qt5Widgets)
if(Qt5Widgets_FOUND)
qt5_wrap_ui(UIS mainwindow.ui)
@@ -20,4 +19,13 @@ if(Qt5Widgets_FOUND)
if(TARGET build_version)
add_dependencies(alsoft-config build_version)
endif()
message(STATUS "Building configuration program")
if(ALSOFT_INSTALL_UTILS)
install(TARGETS alsoft-config
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
endif()