Skip to content

Add CMake support #23

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

Merged
merged 1 commit into from
Nov 4, 2018
Merged

Add CMake support #23

merged 1 commit into from
Nov 4, 2018

Conversation

mujx
Copy link
Contributor

@mujx mujx commented Oct 29, 2018

Example usage:

$ cmake -H. -Bbuild -DQHOTKEY_EXAMPLES=ON
$ cmake --build build

And to install the library

$ cmake --build build --target install

@Skycoder42
Copy link
Owner

Maybe I just can't find it, but what about: LIBS += -luser32 (See qhotkey.prc) for windows? I think I can see you linking to carbon for osx and x11/extras for linux, but I can't find user32

@Skycoder42 Skycoder42 self-requested a review October 29, 2018 15:59
@Skycoder42 Skycoder42 self-assigned this Oct 29, 2018
set(SRC_FILES ${SRC_FILES} QHotkey/qhotkey_mac.cpp)
set(LIBS ${LIBS} ${CARBON_LIBRARY})
elseif(WIN32)
set(SRC_FILES ${SRC_FILES} QHotkey/qhotkey_win.cpp)
Copy link
Owner

Choose a reason for hiding this comment

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

-luser32 propably missing here

Copy link
Contributor Author

@mujx mujx Nov 4, 2018

Choose a reason for hiding this comment

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

CMake links with user32 (and a few others e.g kernel32.lib) by default on Windows. This could be seen by printing the contents of CMAKE_STANDARD_LIBRARIES while building on Windows.

@Skycoder42 Skycoder42 merged commit 5557a02 into Skycoder42:master Nov 4, 2018
@mujx mujx deleted the cmake-support branch November 4, 2018 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy