Advertisement
Guest User

Untitled

a guest
Sep 12th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.46 KB | None | 0 0
  1.  
  2. #GraphicsModule
  3. #ProjectRoot/src/cacGraphics
  4.  
  5. #create target. It's an INTERFACE target, cause it doesn't have any .cpp source files. It's a header only lib.
  6. add_library(cacGraphics INTERFACE)
  7.  
  8. #different include paths. One while building, one after installing. Just specifiyng interface headers in this case
  9. target_include_directories(cacGraphics INTERFACE
  10.     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/Cacatuidae/>
  11.     $<INSTALL_INTERFACE:include/>
  12. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement