Comments (2)
Hi there! Thank you so much for taking the time for a complete example!
from cpm.cmake.
Hi. you missed to give some error message...
The following snippet works for me (linux, all required -dev-Packages installed).
cmake_minimum_required(VERSION 3.24)
include(${CMAKE_SOURCE_DIR}/cmake/CPM.cmake)
CPMAddPackage("gh:wxWidgets/[email protected]")
project(hello CXX)
add_executable(${PROJECT_NAME} WIN32 hello.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE wx::core)
from cpm.cmake.
Related Issues (20)
- Add example for using the `libuv` repository HOT 2
- CPM name of the package MUST NOT be exported target name HOT 2
- Using CPM_dep_SOURCE appears to work, but includes are not found HOT 4
- when use cache the depends lib appeared outside the project in clion HOT 2
- Users in enterprise environments require the ability to add custom URI schemes and override standard URI schemes
- Fast skip dependencies
- CMake 3.30: Calling FetchContent_Populate() is deprecated HOT 3
- Lua example is broken? HOT 1
- Shallow submodules HOT 1
- Incorrect find patch program under win32 HOT 2
- Skip fetch only works when `CPM_SOURCE_CACHE` is defined HOT 1
- Use CPM to build Apache Arrow HOT 2
- package lock with boost HOT 1
- `PATCH_COMMAND` via `FILE` manipulation doesn't seem to get cached HOT 9
- CMake 3.30: FetchContent_Populate(package_name) is deprecated HOT 2
- Is local ?
- Update cache when no specific revision is set for dependency
- Feature: When downloading Git repo and GIT_SHALLOW is unspecified, default to YES HOT 1
- Issue with CPM PATCHES "Reversed (or previously applied) patch detected!" HOT 12
- Feature request: allow CPM install to prefix and find it itself via find_package()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.cmake.