Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qsk cmake find package #352

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Conversation

rick-vogel
Copy link
Collaborator

@rick-vogel rick-vogel commented Dec 21, 2023

Reintegration of QSkinny CMake Find Module generation from: #291
Relates to: #119
Relates to: #351 (comment)

Usage

cmake \
            -S <your source director> \
            -B <your build director> \
            -G "<your generator>" \ # optional e.g. "Unix Makefiles"|"Ninja"|...
            -DCMAKE_BUILD_TYPE=<your build type> \ # optional e.g. Release|Debug|RelWithDebInfo|...
            -DCMAKE_PREFIX_PATH:PATH="<your qt prefix path>" \ # add qt's root directory e.g. C:\sdk\Qt\5.15.2\msvc2019_64
            -DQt5_DIR:PATH="<your qt cmake directory>" \ # add Qt*_DIR e.g. C:\sdk\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5
            -DQSkinny_DIR:PATH=<your qskinny install root directory>/lib/cmake/QSkinny

see: https://github.com/uwerat/qskinny/blob/master/.github/workflows/cmake.yml#L434

find_package(QSkinny REQUIRED)

add_executable(${target} ...)

target_link_libraries(${target} PRIVATE Qsk::qskinny )


find_package(QSkinny REQUIRED)

# TODO we don't delivery the qsk macros
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uwerat we need to discuss whether we want to deliver the qsk_add_* functions


add_subdirectory(../iotdashboard ${CMAKE_CURRENT_BINARY_DIR}/../iotdashboard)

# TODO we don't delivery the support library
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uwerat can we deliver the support library?

@@ -483,6 +483,10 @@ target_include_directories(${target} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/layouts>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/nodes>)

target_include_directories(${target}
INTERFACE
$<INSTALL_INTERFACE:${QSK_INSTALL_HEADERS}>)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uwerat this line makes it that cmake can automatically generate the (library) target's include directories

@uwerat uwerat merged commit e0bdf16 into uwerat:master Dec 21, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants