2020-10-24 23:51:02 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
project(checkbrute LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
|
|
|
|
|
|
set(CHECKBRUTE_SOURCES
|
|
|
|
src/main.cpp
|
|
|
|
src/mainthread.cpp
|
|
|
|
src/brutethread.cpp
|
|
|
|
src/checksum.cpp
|
2020-10-25 02:54:22 +02:00
|
|
|
src/checksum_lib.cpp
|
2020-10-24 23:51:02 +02:00
|
|
|
src/checksum_qt.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(CHECKBRUTE_HEADERS
|
|
|
|
src/mainthread.h
|
|
|
|
src/brutethread.h
|
2020-10-25 02:54:22 +02:00
|
|
|
src/checkbrute.h
|
2020-10-24 23:51:02 +02:00
|
|
|
src/checksum.h
|
2020-10-25 02:54:22 +02:00
|
|
|
src/checksum_lib.h
|
2020-10-24 23:51:02 +02:00
|
|
|
src/checksum_qt.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(checkbrute
|
|
|
|
${CHECKBRUTE_HEADERS}
|
|
|
|
${CHECKBRUTE_SOURCES}
|
|
|
|
)
|
|
|
|
|
2020-10-25 02:54:22 +02:00
|
|
|
target_compile_definitions(checkbrute PRIVATE "CHECKBRUTE_PLUGINS=\"${CMAKE_INSTALL_PREFIX}/share/checkbrute/plugins\"")
|
2020-10-24 23:51:02 +02:00
|
|
|
target_link_libraries(checkbrute PRIVATE Qt5::Core)
|
|
|
|
|
|
|
|
install(TARGETS checkbrute DESTINATION bin)
|