2019-03-29 14:54:34 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(squawk)
|
|
|
|
|
|
|
|
# Find includes in corresponding build directories
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
# Instruct CMake to run moc automatically when needed.
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Instruct CMake to create code from Qt designer ui files
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
2019-06-21 19:33:38 +00:00
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
2019-03-29 14:54:34 +00:00
|
|
|
find_package(Qt5Widgets CONFIG REQUIRED)
|
|
|
|
set(squawk_SRC
|
|
|
|
main.cpp
|
2019-04-11 14:58:59 +00:00
|
|
|
global.cpp
|
|
|
|
exception.cpp
|
2019-04-02 21:58:43 +00:00
|
|
|
signalcatcher.cpp
|
2019-03-29 14:54:34 +00:00
|
|
|
)
|
|
|
|
|
2019-06-21 19:33:38 +00:00
|
|
|
add_executable(squawk ${squawk_SRC} resources/resources.qrc)
|
2019-03-29 14:54:34 +00:00
|
|
|
target_link_libraries(squawk Qt5::Widgets)
|
|
|
|
|
|
|
|
add_subdirectory(ui)
|
|
|
|
add_subdirectory(core)
|
2019-06-28 15:15:30 +00:00
|
|
|
add_subdirectory(external/qxmpp)
|
2019-03-29 14:54:34 +00:00
|
|
|
|
|
|
|
target_link_libraries(squawk squawkUI)
|
|
|
|
target_link_libraries(squawk squawkCORE)
|
2019-04-12 15:22:10 +00:00
|
|
|
target_link_libraries(squawk uuid)
|
2019-03-29 14:54:34 +00:00
|
|
|
|
|
|
|
# Install the executable
|
|
|
|
install(TARGETS squawk DESTINATION bin)
|