--- torrent-file-editor-0.2.1/CMakeLists.txt.orig 2015-11-17 09:35:52.000000000 +0000 +++ torrent-file-editor-0.2.1/CMakeLists.txt 2015-11-18 11:33:36.000000000 +0000 @@ -1,5 +1,5 @@ project(torrent-file-editor) -cmake_minimum_required(VERSION 2.8.11) +cmake_minimum_required(VERSION 2.8.10) set(APP_VERSION "0.2.1") set(BUNDLE_DIR_BASE_NAME "Torrent File Editor") @@ -124,6 +124,9 @@ endif() add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${QM} ${HEADERS} ${SOURCES} ${MOC_SOURCES} ${QRC_SOURCES} ${UI_SOURCES}) if(QT5_BUILD) + include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) + add_definitions(${Qt5Core_EXECUTABLE_COMPILE_FLAGS} ${Qt5Gui_EXECUTABLE_COMPILE_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}) + target_link_libraries(${PROJECT_NAME} ${START_STATIC} Qt5::Core Qt5::Gui Qt5::Widgets ${END_STATIC}) else() target_link_libraries(${PROJECT_NAME} ${START_STATIC} ${QJSON_LIBRARIES} ${START_STATIC} ${QT_LIBRARIES} ${END_STATIC})