Commit 4b875e09 authored by LordTermor's avatar LordTermor

Cleanup

parent 7cf39e3d
cmake_minimum_required(VERSION 3.14)
project(pamac-qt)
add_subdirectory(libqpamac)
add_subdirectory(notificationservice)
if(NOT DEFINED VERSION)
execute_process(COMMAND git --git-dir ./.git --work-tree ./ describe --always --tags
OUTPUT_VARIABLE RES
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP ${RES} RES)
add_definitions(-DVERSION=\"${RES}\")
execute_process(COMMAND git --git-dir ./.git --work-tree ./ describe --always --tags
OUTPUT_VARIABLE RES
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP ${RES} RES)
add_definitions(-DVERSION=\"${RES}\")
endif(NOT DEFINED VERSION)
add_subdirectory(app)
add_subdirectory(libqpamac)
add_subdirectory(notificationservice)
install(TARGETS libqpamac desktopnotificationservices pamac-qt)
......@@ -18,9 +18,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
AUTOMOC TRUE
CXX_STANDARD 17
CXX_EXTENSIONS ON)
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_include_directories(${PROJECT_NAME} PUBLIC include ${GLIB2_INCLUDE_DIRS} ${PAMAC_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${GLIB2_LIBRARIES} ${PAMAC_LIBRARIES})
target_include_directories(${PROJECT_NAME} PUBLIC ${GLIB2_INCLUDE_DIRS} ${PAMAC_INCLUDE_DIRS})
target_compile_options(${PROJECT_NAME} PUBLIC ${GLIB2_CFLAGS_OTHER} )
......
......@@ -30,7 +30,6 @@ void LibQPamacModule::registerTypes(const char *uri)
qmlRegisterType<HistoryItemModel>("QPamac.History",1,0,"HistoryModel");
qmlRegisterUncreatableType<AurPackage>("QPamac.AUR.Package",1,0,"AURPackage","");
qmlRegisterUncreatableType<AlpmPackage>("QPamac.Package",1,0,"AlpmPackage","");
qmlRegisterType<Package>();
qmlRegisterType<PackageModel>("QPamac.PackageModel",1,0,"PackageModel");
qmlRegisterType<AurPackageModel>("QPamac.AUR.PackageModel",1,0,"AURPackageModel");
qmlRegisterUncreatableType<Updates>("QPamac.Database",1,0,"Updates","");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment