Fix CMake build on Windows

This commit is contained in:
Florian Märkl 2017-03-31 16:52:26 +02:00
parent 94f513a7bd
commit 03e2ea5df9

View File

@ -15,9 +15,11 @@ find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui WebKit WebKitWidgets)
if(WIN32)
# use radare2 libraries from submodule on windows
set(IAITO_WIN32_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../iaito_win32")
list(APPEND CMAKE_PREFIX_PATH "${IAITO_WIN32_DIR}" "${IAITO_WIN32_DIR}/radare2")
list(APPEND CMAKE_PREFIX_PATH "${IAITO_WIN32_DIR}")
list(APPEND CMAKE_LIBRARY_PATH "${IAITO_WIN32_DIR}/radare2/lib32")
set(RADARE2_INCLUDE_DIRS "${IAITO_WIN32_DIR}/radare2/include/libr" "${IAITO_WIN32_DIR}/include")
endif()