Commit f62e5351 authored by Artem Grinev's avatar Artem Grinev Committed by Artem Grinev
Browse files

Added CMake target installation directive

parent 76be9a7f
......@@ -5,12 +5,14 @@ project(pamac-qt)
add_subdirectory(libqpamac)
add_subdirectory(qmltable)
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}\")
endif(NOT DEFINED VERSION)
add_subdirectory(app)
install(TARGETS libqpamac qtnotificationservice pamac-qt-app)
......@@ -25,3 +25,5 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${GLIB2_INCLUDE_DIRS} ${PAMAC_
target_compile_options(${PROJECT_NAME} PUBLIC ${GLIB2_CFLAGS_OTHER} )
qt5_use_modules(${PROJECT_NAME} Core Qml Quick)
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
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