Advertisement
Lumi_V

Src CMake

Dec 15th, 2023
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.41 KB | None | 0 0
  1. set(
  2.     EXEC_SOURCES
  3.     "Main.cpp"
  4.     "Mesh.cpp"
  5.     "Shader.cpp"
  6.     "Window.cpp"
  7.     "Camera.cpp"
  8.     "GUI.cpp"
  9. )
  10.  
  11. # Adding the main file as an executable to our project
  12. add_executable(
  13.     ${EXECUTABLE_NAME}
  14.     ${EXEC_SOURCES}
  15. )
  16.  
  17. # We have inheritance modes - PUBLIC, PRIVATE, INTERFACE
  18. target_link_libraries(
  19.     ${EXECUTABLE_NAME} PUBLIC
  20.     ${LIBRARY_NAME}
  21.     ${EXTERN_LIBRARY_NAME}
  22. )
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement