aboutsummaryrefslogtreecommitdiffstats
path: root/pyrcc/CMakeLists.txt
blob: 2aaf78840c79e81d396904b965aa8ec48262a485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
find_package(Qt5Xml)

add_executable(pyside2-rcc main.cpp rcc.cpp)
include_directories(pyside2-rcc
                    ${Qt5Xml_INCLUDE_DIRS}
                    ${Qt5Core_INCLUDE_DIRS})

target_link_libraries(pyside2-rcc
                      ${Qt5Core_LIBRARIES}
                      ${Qt5Xml_LIBRARIES})

install(TARGETS pyside2-rcc RUNTIME DESTINATION bin)

# Man pages
if (NOT WIN32)
    file(GLOB manpages "${CMAKE_CURRENT_SOURCE_DIR}/*.1")
    install(FILES ${manpages} DESTINATION share/man/man1)
endif()