Skip to content

Commit

Permalink
CMakeLists.txt: handle the obuparse include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Asd-g committed Apr 7, 2024
1 parent a801896 commit 733f2da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,16 @@ endif (PKG_CONFIG_FOUND)
find_library(libxxhash NAMES libxxhash.a xxhash xxhash.lib PATHS ${xxhash_LIBRARY_DIRS})
message(STATUS "xxhash: ${libxxhash}")

find_path(libopurse_include NAMES obuparse.h)
target_include_directories(LSMASHSource PRIVATE ${libopurse_include})
find_library(libobuparse NAMES libobuparse.a obuparse obuparse.lib)
message(STATUS "obuparse: ${libobuparse}")

if (PKG_CONFIG_FOUND)
pkg_check_modules(lsmash liblsmash)
target_include_directories(LSMASHSource PRIVATE ${lsmash_INCLUDE_DIRS})
endif (PKG_CONFIG_FOUND)
find_library(liblsmash NAMES liblsmash.a lsmash lsmash.lib PATHS ${lsmash_LIBRARY_DIRS})
find_library(liblsmash NAMES liblsmash.a lsmash liblsmash.lib PATHS ${lsmash_LIBRARY_DIRS})
message(STATUS "lsmash: ${liblsmash}")

target_link_libraries(LSMASHSource PRIVATE
Expand Down

0 comments on commit 733f2da

Please sign in to comment.