SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. project(foo)
  2.  
  3. add_executable(foo_exe)
  4. target_sources(foo_exe PRIVATE main.c)
  5.  
  6. # Uncomment these 2 lines to make the "LANGUAG" work
  7. #get_source_file_property(_LOCATION main.c LOCATION)
  8. #message("LOCATION: ${_LOCATION}")
  9.  
  10. get_source_file_property(_LANGUAGE main.c LANGUAGE)
  11. message("LANGUAGE: ${_LANGUAGE}")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top