cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # add project files set(HEADER_FILES alpm/manager.h alpm/package.h alpm/utilities.h network/server.h network/connection.h network/networkaccessmanager.h alpm/config.h alpm/resolvebuildorder.h alpm/mingwbundle.h network/userrepository.h alpm/alpmpackage.h alpm/aurpackage.h alpm/alpmdatabase.h alpm/repository.h alpm/upgradelookup.h alpm/suggestionslookup.h alpm/packageinfolookup.h alpm/packagelookup.h alpm/packagefinder.h ) set(SRC_FILES alpm/manager.cpp alpm/package.cpp alpm/utilities.cpp alpm/config.cpp alpm/resolvebuildorder.cpp alpm/mingwbundle.cpp alpm/alpmpackage.cpp alpm/aurpackage.cpp alpm/alpmdatabase.cpp alpm/repository.cpp alpm/upgradelookup.cpp alpm/suggestionslookup.cpp alpm/packageinfolookup.cpp alpm/packagelookup.cpp alpm/packagefinder.cpp network/server.cpp network/connection.cpp network/userrepository.cpp network/networkaccessmanager.cpp ) # add Qt/KF modules which can currently not be detected automatically list(APPEND ADDITIONAL_QT_MODULES Concurrent Network WebSockets) list(APPEND ADDITIONAL_KF_MODULES Archive) # find c++utilities find_package(c++utilities 3.3.0 REQUIRED) use_cpp_utilities() # find qtutilities find_package(qtutilities 4.0.0 REQUIRED) use_qt_utilities() # prefix the target to avoid conflict with cli target set(TARGET_PREFIX "lib") # include modules to apply configuration include(BasicConfig) include(QtConfig) include(WindowsResources) include(LibraryTarget)