Advertisement
Guest User

Untitled

a guest
Sep 6th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.23 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.4)
  2.  
  3. file(WRITE test.cpp [[
  4.     #include <baz.hpp>
  5.  
  6.     int main() {}
  7. ]])
  8.  
  9. file(WRITE "foo bar/baz.hpp")
  10.  
  11.  
  12. add_executable(mytest test.cpp)
  13. target_include_directories(mytest PRIVATE "foo bar")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement