1 2 3 4 5 6 7 8 9 10 11 12
cmake_minimum_required(VERSION 3.1.0) add_library(configuration settingsdialog.cpp settingsdialog.h settingsdialog.ui) if (CLikeConfig) target_compile_definitions(configuration PRIVATE C_LIKE_CONFIG) endif (CLikeConfig) target_link_libraries(configuration config++ Qt5::Widgets)