mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
40 lines
672 B
CMake
40 lines
672 B
CMake
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
add_library(UI STATIC)
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core SerialBus)
|
|
|
|
set_target_properties(
|
|
UI
|
|
PROPERTIES
|
|
AUTOMOC ON
|
|
AUTORCC ON
|
|
)
|
|
|
|
target_compile_options(UI PRIVATE $<$<CONFIG:Debug>:
|
|
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
|
>)
|
|
|
|
file(GLOB_RECURSE UI_SOURCES "*.?pp")
|
|
|
|
target_sources(UI
|
|
PRIVATE
|
|
${UI_SOURCES}
|
|
${CUSTOM_UI_SOURCES}
|
|
)
|
|
|
|
target_include_directories(UI
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
PRIVATE
|
|
${CMAKE_BINARY_DIR}/**
|
|
)
|
|
|
|
target_link_libraries(UI
|
|
PUBLIC
|
|
Color
|
|
magic_enum::magic_enum
|
|
Qt::Core
|
|
Qt::SerialBus
|
|
proto-ui
|
|
) |