42 lines
820 B
CMake
42 lines
820 B
CMake
qt_add_executable(nixos-workstations-setup
|
|
main.cpp
|
|
ProvisioningBackend.cpp
|
|
ProvisioningBackend.h
|
|
)
|
|
|
|
qt_add_qml_module(nixos-workstations-setup
|
|
URI org.raspot.nixosworkstations.setup
|
|
VERSION 1.0
|
|
QML_FILES
|
|
Main.qml
|
|
)
|
|
|
|
target_include_directories(nixos-workstations-setup
|
|
PRIVATE
|
|
${CMAKE_CURRENT_BINARY_DIR}/../generated
|
|
)
|
|
|
|
target_link_libraries(nixos-workstations-setup
|
|
PRIVATE
|
|
Qt6::Core
|
|
Qt6::Gui
|
|
Qt6::Qml
|
|
Qt6::Quick
|
|
Qt6::QuickControls2
|
|
)
|
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
|
target_compile_options(nixos-workstations-setup
|
|
PRIVATE
|
|
-Wall
|
|
-Wextra
|
|
-Wpedantic
|
|
-Werror=reorder
|
|
)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS nixos-workstations-setup
|
|
RUNTIME DESTINATION bin
|
|
)
|