checkbrute/CMakeLists.txt
2020-10-25 02:54:22 +02:00

42 lines
895 B
CMake

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
src/checksum_lib.cpp
src/checksum_qt.cpp
)
set(CHECKBRUTE_HEADERS
src/mainthread.h
src/brutethread.h
src/checkbrute.h
src/checksum.h
src/checksum_lib.h
src/checksum_qt.h
)
add_executable(checkbrute
${CHECKBRUTE_HEADERS}
${CHECKBRUTE_SOURCES}
)
target_compile_definitions(checkbrute PRIVATE "CHECKBRUTE_PLUGINS=\"${CMAKE_INSTALL_PREFIX}/share/checkbrute/plugins\"")
target_link_libraries(checkbrute PRIVATE Qt5::Core)
install(TARGETS checkbrute DESTINATION bin)