This example assumes that Conan is configured to fetch packages from the remote called jiverson002 which points to https://api.bintray.com/conan/jiverson002/public-conan.
-
-
Save jiverson002/210c05430d28a95909a607dc5d675dc0 to your computer and use it in GitHub Desktop.
An example project using GKlib via Conan.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prerequisites | |
*.d | |
# Compiled Object files | |
*.slo | |
*.lo | |
*.o | |
*.obj | |
# Precompiled Headers | |
*.gch | |
*.pch | |
# Compiled Dynamic libraries | |
*.so | |
*.dylib | |
*.dll | |
# Fortran module files | |
*.mod | |
*.smod | |
# Compiled Static libraries | |
*.lai | |
*.la | |
*.a | |
*.lib | |
# Executables | |
*.exe | |
*.out | |
*.app | |
# Build files | |
build | |
# Conan stuff | |
env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
project(GKlib-conan C) | |
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | |
conan_basic_setup() | |
find_package(GKlib CONFIG REQUIRED) | |
add_executable(example example.c) | |
target_link_libraries(example GKlib::GKlib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[requires] | |
GKlib/0.0.1@jiverson002/stable | |
[generators] | |
cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "GKlib.h" | |
int main() { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment