Last active
February 10, 2021 08:14
-
-
Save jpihl/cebcdf4566cfc7110046847614d3b973 to your computer and use it in GitHub Desktop.
Steinwurf CMake Example
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.11) | |
project(cmake_example) | |
include(FetchContent) | |
FetchContent_Declare( | |
kodo_rlnc | |
GIT_REPOSITORY git@github.com:steinwurf/kodo-rlnc.git | |
GIT_TAG 17.0.0 | |
) | |
FetchContent_MakeAvailable(kodo_rlnc) | |
add_executable(cmake_example main.cpp) | |
target_link_libraries(cmake_example steinwurf::kodo_rlnc) |
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 <iostream> | |
#include <kodo_rlnc/version.hpp> | |
int main(int argc, char const *argv[]) { | |
std::cout << kodo_rlnc::version() << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage