Skip to content

Instantly share code, notes, and snippets.

@ekse
Last active April 27, 2018 04:14
Show Gist options
  • Save ekse/5886f73185361d6c64a8986222d589c5 to your computer and use it in GitHub Desktop.
Save ekse/5886f73185361d6c64a8986222d589c5 to your computer and use it in GitHub Desktop.
CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(CMakeRustSample)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
enable_language(Rust)
include(CMakeCargo)
include_directories("include")
add_subdirectory(test-lib)
add_executable(helloworld main.cpp)
target_link_libraries(helloworld test-lib ws2_32 userenv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment