Skip to content

Commit

Permalink
pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Sep 6, 2024
1 parent 9d0345b commit 7091559
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else()
set(GUI_FOUND FALSE)
endif(FLTK_FOUND)

if(MSVC)
if(MSVC OR APPLE)
find_package(liblo)
if(liblo_FOUND)
set(LIBLO_FOUND TRUE)
Expand Down Expand Up @@ -174,10 +174,10 @@ macro(maketestcpp fname)
target_link_libraries(${fname} PRIVATE rtosc-cpp rtosc)
#add_test(memcheck_${fname} valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 ./${fname})
endmacro(maketestcpp)
if(WIN32)
set(RTOSC_LIBLO_LIBRARIES "liblo::liblo")
else()
if(PKG_CONFIG_FOUND)
set(RTOSC_LIBLO_LIBRARIES "${LIBLO_LIBRARIES}")
else()
set(RTOSC_LIBLO_LIBRARIES "liblo::liblo")
endif()

maketest(rtosc-time)
Expand Down

0 comments on commit 7091559

Please sign in to comment.