Advertisement
LxrdKxnny

Sandbox/CMakeLists.txt

May 13th, 2023
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.05 KB | None | 0 0
  1. # Sandbox project
  2. project(Sandbox)
  3.  
  4. # C++ standard
  5. set(CMAKE_CXX_STANDARD 17)
  6.  
  7. # Output directories
  8. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Bin)
  9. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Lib)
  10. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Lib)
  11.  
  12. # Sandbox executable
  13. add_executable(
  14.     Sandbox
  15.  
  16.     Source/Private/Sandbox.cpp
  17. )
  18.  
  19. # Sandbox include directories
  20. target_include_directories(
  21.     Sandbox PUBLIC
  22.  
  23.     Source/Public
  24.  
  25.     ../../Engine/Audio/Public
  26.     ../../Engine/Core/Public
  27.     ../../Engine/Editor/Public
  28.     ../../Engine/Graphics/Public
  29.     ../../Engine/Input/Public
  30.     ../../Engine/Networking/Public
  31.     ../../Engine/Physics/Public
  32.     ../../Engine/Resource/Public
  33.     ../../Engine/Scene/Public
  34.     ../../Engine/Scripting/Public
  35.     ../../Engine/Serialization/Public
  36.     ../../Engine/UI/Public
  37. )
  38.  
  39. # Sandbox link libraries
  40. target_link_libraries(
  41.     Sandbox PRIVATE
  42.  
  43.     Engine
  44. )
  45.  
  46. # Entry point for the Sandbox game
  47. target_sources(Sandbox PRIVATE ../../Engine/Core/Private/Engine.cpp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement