add some app infrastructure services
This commit is contained in:
@@ -22,14 +22,14 @@ FetchContent_Declare(
|
||||
GIT_REPOSITORY https://github.com/thestk/rtmidi.git
|
||||
GIT_TAG 6.0.0
|
||||
)
|
||||
# FetchContent_Declare(
|
||||
# libconfig
|
||||
# GIT_REPOSITORY https://github.com/hyperrealm/libconfig.git
|
||||
# GIT_TAG v1.8.2
|
||||
# )
|
||||
FetchContent_Declare(
|
||||
libconfig
|
||||
GIT_REPOSITORY https://github.com/hyperrealm/libconfig.git
|
||||
GIT_TAG v1.8.2
|
||||
)
|
||||
FetchContent_MakeAvailable(rtaudio)
|
||||
FetchContent_MakeAvailable(rtmidi)
|
||||
# FetchContent_MakeAvailable(libconfig)
|
||||
FetchContent_MakeAvailable(libconfig)
|
||||
|
||||
# needs to be preinstalled
|
||||
find_package(Qt6 REQUIRED COMPONENTS
|
||||
@@ -53,12 +53,18 @@ target_link_libraries(sonobulus_core PRIVATE
|
||||
Qt6::Quick
|
||||
rtaudio
|
||||
rtmidi
|
||||
libconfig++
|
||||
)
|
||||
|
||||
target_include_directories(sonobulus_core PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/src/
|
||||
${rtaudio_SOURCE_DIR}
|
||||
${rtmidi_SOURCE_DIR}
|
||||
${libconfig_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
target_compile_definitions(sonobulus_core PRIVATE
|
||||
BINARY_DIR="${CMAKE_BINARY_DIR}"
|
||||
)
|
||||
|
||||
qt_add_executable(sonobulus
|
||||
@@ -74,6 +80,7 @@ qt_add_qml_module(sonobulus
|
||||
target_include_directories(sonobulus PRIVATE
|
||||
${rtaudio_SOURCE_DIR}
|
||||
${rtmidi_SOURCE_DIR}
|
||||
${libconfig_SOURCE_DIR}/lib
|
||||
)
|
||||
|
||||
target_link_libraries(sonobulus PRIVATE
|
||||
@@ -95,6 +102,7 @@ if (WIN32)
|
||||
TARGET sonobulus POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:rtaudio>
|
||||
$<TARGET_FILE:libconfig++>
|
||||
$<TARGET_FILE_DIR:sonobulus>
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user