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) if(WIN32)
set(IAITO_WIN32_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../iaito_win32") # use radare2 libraries from submodule on windows
list(APPEND CMAKE_PREFIX_PATH "${IAITO_WIN32_DIR}" "${IAITO_WIN32_DIR}/radare2") set(IAITO_WIN32_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../iaito_win32")
list(APPEND CMAKE_LIBRARY_PATH "${IAITO_WIN32_DIR}/radare2/lib32") 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() endif()
@ -26,7 +28,7 @@ include_directories(${RADARE2_INCLUDE_DIRS})
set(SOURCE_FILES set(SOURCE_FILES
main.cpp main.cpp
mainwindow.cpp mainwindow.cpp
newfiledialog.cpp newfiledialog.cpp
optionsdialog.cpp optionsdialog.cpp
@ -62,7 +64,7 @@ set(SOURCE_FILES
hexhighlighter.cpp) hexhighlighter.cpp)
set(HEADER_FILES set(HEADER_FILES
mainwindow.h mainwindow.h
newfiledialog.h newfiledialog.h
optionsdialog.h optionsdialog.h
highlighter.h highlighter.h
@ -98,7 +100,7 @@ set(HEADER_FILES
hexhighlighter.h) hexhighlighter.h)
set(UI_FILES set(UI_FILES
mainwindow.ui mainwindow.ui
newfiledialog.ui newfiledialog.ui
optionsdialog.ui optionsdialog.ui
createnewdialog.ui createnewdialog.ui