Advertisement
ddto

Untitled

Aug 11th, 2024
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.79 KB | None | 0 0
  1. # CMakeList.txt : CMake project for space, include source and define
  2. # project specific logic here.
  3. #
  4. cmake_minimum_required (VERSION 3.8)
  5.  
  6. # Enable Hot Reload for MSVC compilers if supported.
  7. if (POLICY CMP0141)
  8.   cmake_policy(SET CMP0141 NEW)
  9.   set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
  10. endif()
  11.  
  12. project ("space")
  13.  
  14. # Add source to this project's executable.
  15. set(SRCS    "src/Main.cpp"
  16.             "src/engine/Engine.cpp"
  17.             "src/engine/Render.cpp")
  18. add_executable (space ${SRCS})
  19.  
  20. if (CMAKE_VERSION VERSION_GREATER 3.12)
  21.   set_property(TARGET space PROPERTY CXX_STANDARD 20)
  22. endif()
  23.  
  24. # TODO: Add tests and install targets if needed.
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement