Merge pull request #190 from ryandesign/LaunchAPPL-find-libhfs

LaunchAPPL: Find libhfs header/library
This commit is contained in:
Wolfgang Thaller 2022-10-25 23:26:29 +02:00 committed by GitHub
commit 932ceadf9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
find_package(Boost COMPONENTS filesystem program_options)
find_path(HFS_INCLUDE_DIR NAMES hfs.h)
find_library(HFS_LIBRARY NAMES hfs)
set(LAUNCHMETHODS
Executor.h Executor.cc
@ -30,9 +32,8 @@ add_executable(LaunchAPPL
${LAUNCHMETHODS})
target_include_directories(LaunchAPPL PRIVATE ${CMAKE_INSTALL_PREFIX}/include ${Boost_INCLUDE_DIR})
target_link_libraries(LaunchAPPL ResourceFiles LaunchAPPLCommon ${Boost_LIBRARIES})
target_include_directories(LaunchAPPL PRIVATE ${CMAKE_INSTALL_PREFIX}/include ${Boost_INCLUDE_DIR} ${HFS_INCLUDE_DIR})
target_link_libraries(LaunchAPPL ResourceFiles LaunchAPPLCommon ${Boost_LIBRARIES} ${HFS_LIBRARY})
if(APPLE)
find_library(APPLICATIONSERVICES_FW ApplicationServices)