Fix linking to unicorn on Unix (#13)

I'm not very familiar with CMake but this seems to work

Closes #9
This commit is contained in:
TingPing
2018-01-29 11:40:42 -05:00
committed by Peter Mackay
parent 92a3667c69
commit c732ce5db2
+2 -1
View File
@@ -50,7 +50,8 @@ else()
find_package(PkgConfig)
pkg_check_modules(UNICORN REQUIRED unicorn)
target_include_directories(unicorn INTERFACE "${UNICORN_INCLUDE_DIRS}")
target_link_libraries(unicorn INTERFACE "${UNICORN_LIBRARIES}")
find_library(UNICORN_LIB NAMES "${UNICORN_STATIC_LIBRARIES}" PATHS "${UNICORN_LIBRARY_DIRS}")
target_link_libraries(unicorn INTERFACE "${UNICORN_LIB}")
endif()
add_library(vita-headers INTERFACE)