Advertisement
Guest User

attempt at cmakelists

a guest
Oct 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. library file layout looks like this (blame visual studio)
  2.  
  3. (root of git repo named "meow_hash_cpp")
  4. ├── CMakeLists.txt
  5. └── meowhash_cpp
  6. └── meow_hash.hpp
  7.  
  8. attempt at CMakeLists.txt:
  9. =========
  10.  
  11. cmake_minimum_required(VERSION 3.5)
  12. project(libmeow_hash_cpp VERSION 0.1.0 LANGUAGES CXX)
  13.  
  14. add_library(meow_hash_cpp meowhash_cpp/meow_hash.hpp)
  15.  
  16. target_include_directories(meow_hash_cpp
  17. PUBLIC
  18. $<INSTALL_INTERFACE:meowhash_cpp>
  19. $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/meowhash_cpp>
  20. )
  21.  
  22. target_compile_features(meow_hash_cpp PRIVATE cxx_std_17)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement