Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.31 KB | None | 0 0
  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}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement