-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
24 lines (15 loc) · 812 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.16)
project(asocial LANGUAGES CXX VERSION 0.1.0)
# Common parameters
include(common.cmake)
# Build plugins
include(plugins.cmake)
find_package(Qt6 COMPONENTS Core LinguistTools REQUIRED)
# Listing the available sources to build
file(GLOB_RECURSE Execution_CPP RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/*.cpp")
file(GLOB_RECURSE Execution_H RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/*.h" "include/*.h")
file(GLOB_RECURSE Execution_TS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "i18n/*.ts")
qt_add_executable(${PROJECT_NAME} ${Execution_CPP} ${Execution_H})
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Core)
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${Execution_TS})