58 lines
1.1 KiB
CMake
58 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
|
|
option(TESTS "Build all tests" OFF)
|
|
|
|
project(IntegrityApp)
|
|
|
|
include(CPack)
|
|
|
|
set(CPACK_PACKAGE_NAME "IntegrityCheck")
|
|
set(CPACK_PACKAGE_VENDOR "Arne Schröder")
|
|
set(CPACK_PACKAGE_VERSION_MAJOR 1)
|
|
set(CPACK_PACKAGE_VERSION_MINOR 0)
|
|
set(CPACK_PACKAGE_VERSION_PATCH 0)
|
|
set(CPACK_GENERATOR "TGZ")
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
|
|
|
|
set(SOURCES
|
|
src/main.cpp
|
|
src/mainwindow.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
inc/mainwindow.h
|
|
)
|
|
|
|
set(FORMS
|
|
ui/mainwindow.ui
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
${SOURCES}
|
|
${HEADERS}
|
|
${FORMS}
|
|
)
|
|
target_include_directories(${PROJECT_NAME} PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
#./cryptopp/
|
|
./integritycheck/inc
|
|
)
|
|
target_link_libraries(${PROJECT_NAME}
|
|
# ${CMAKE_SOURCE_DIR}/cryptopp/libcryptopp.a
|
|
IntegrityCheck
|
|
Qt5::Core
|
|
Qt5::Widgets
|
|
)
|
|
|
|
set(BUILD_TESTING OFF)
|
|
add_subdirectory(libs/IntegrityCheck)
|
|
add_subdirectory(libs/cryptopp) |