project(FFBChecker)
-find_package(Qt5Widgets)
+find_package(Qt5Widgets REQUIRED)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# Linux-specific definitions
set(QT_LIBS_PATH "C://Qt-Static//bin_noicu")
set(SDL2_INCLUDE_DIRS "C://Users//Sacrilegium//Hacking//SDL2-2.0.3//include")
set(SDL2_LIBRARIES ${SDL2_LIBRARIES} "C://Users//Sacrilegium//Hacking//SDL2-2.0.3//lib//x86//SDL2.lib")
- # set(SDL2_LIBRARIES ${SDL2_LIBRARIES} "C://Users//Sacrilegium//Hacking//SDL2-2.0.3//lib//x86//SDL2main.lib")
endif()
set(CMAKE_AUTOMOC ON)
include_directories("${QT_LIBS_PATH}//include")
endif()
-add_executable(FFBChecker ${FFBChecker_SRCS})
if (PLATFORM_LINUX)
+ add_executable(FFBChecker ${FFBChecker_SRCS})
target_link_libraries(FFBChecker Qt5::Widgets)
elseif (PLATFORM_WIN32)
+ add_executable(FFBChecker WIN32 ${FFBChecker_SRCS})
target_link_libraries(FFBChecker "Ws2_32.lib")
- target_link_libraries(FFBChecker "imm32.lib")
target_link_libraries(FFBChecker "winmm.lib")
- target_link_libraries(FFBChecker "${QT_LIBS_PATH}//plugins//platforms//qwindows.lib")
+ target_link_libraries(FFBChecker "imm32.lib")
target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//qtpcre.lib")
- target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//qtharfbuzzng.lib")
target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//qtfreetype.lib")
- target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//Qt5Core.lib")
+ target_link_libraries(FFBChecker Qt5::WinMain Qt5::Widgets)
+ target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//qtharfbuzzng.lib")
target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//Qt5PlatformSupport.lib")
- target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//Qt5Gui.lib")
- target_link_libraries(FFBChecker "${QT_LIBS_PATH}//lib//Qt5Widgets.lib")
+ target_link_libraries(FFBChecker "${QT_LIBS_PATH}//plugins//platforms//qwindows.lib")
endif()
if (SDL2_FOUND)