Skip to content

Commit

Permalink
Fixup CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jan 19, 2024
1 parent ce7d30d commit 062d131
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,15 @@ if(USE_LV2)
if(NOT ${calfResult} EQUAL 0)
message(FATAL_ERROR "Could not create ${CMAKE_INSTALL_PREFIX}/lib/lv2/${PROJECT_NAME}.lv2/calf.so")
endif()
install(
CODE "file(COPY $<TARGET_FILE:calflv2gui>/ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/lv2/${PROJECT_NAME}.lv2/calflv2gui.so)"
RESULT_VARIABLE calfResult
OUTPUT_VARIABLE nothing
)
if(NOT ${calfResult} EQUAL 0)
message(FATAL_ERROR "Could not create ${CMAKE_INSTALL_PREFIX}/lib/lv2/${PROJECT_NAME}.lv2/calflv2gui.so")
endif()

if(USE_GUI)
install(
CODE "file(COPY $<TARGET_FILE:calflv2gui>/ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/lv2/${PROJECT_NAME}.lv2/calflv2gui.so)"
RESULT_VARIABLE calfResult
OUTPUT_VARIABLE nothing
)
if(NOT ${calfResult} EQUAL 0)
message(FATAL_ERROR "Could not create ${CMAKE_INSTALL_PREFIX}/lib/lv2/${PROJECT_NAME}.lv2/calflv2gui.so")
endif()
install(TARGETS calflv2gui DESTINATION lib/${PROJECT_NAME})
endif()

Expand Down

0 comments on commit 062d131

Please sign in to comment.