Skip to content

Commit

Permalink
Merge pull request #2 from kipr/erinQt6Upgrade
Browse files Browse the repository at this point in the history
Changed CMakeLists.txt to use qt6 instead of qt5, general qt5 -> qt6 …
  • Loading branch information
tcorbly authored Jan 19, 2024
2 parents 8731c42 + 6d2604c commit e0ba467
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lib
build
.DS_Store
.vscode/
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(libkar)

cmake_minimum_required(VERSION 2.8.12)

find_package(Qt5Core REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Core)

set(INCLUDE ${libkar_SOURCE_DIR}/include)
set(SRC ${libkar_SOURCE_DIR}/src)
Expand All @@ -14,7 +14,7 @@ file(GLOB SOURCES ${SRC}/*.c ${SRC}/*.cpp)

set(LIBRARY_OUTPUT_PATH ${libkar_SOURCE_DIR}/lib)
add_library(kar SHARED ${SOURCES} ${INCLUDES})
qt5_use_modules(kar Core)
target_link_libraries(kar Qt6::Core)

if(WIN32 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/../prefix)
Expand All @@ -35,3 +35,9 @@ add_custom_target(osx_install_names ALL
endif()

add_subdirectory(tools)

set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "KIPR")
set(CPACK_PACKAGING_INSTALL_PREFIX /usr/local/)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE arm64)
include(CPack)
4 changes: 2 additions & 2 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ include_directories(${CMAKE_SOURCE_DIR})

add_executable(kissarchive kissarchive.cpp)
target_link_libraries(kissarchive kar)
qt5_use_modules(kissarchive Core)
target_link_libraries(kissarchive Qt6::Core)

install(TARGETS kissarchive RUNTIME DESTINATION bin)
install(TARGETS kissarchive RUNTIME DESTINATION bin)

0 comments on commit e0ba467

Please sign in to comment.