Advertisement
Frumkin

Untitled

Jul 24th, 2021
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 3.20.1 FATAL_ERROR)
  2.  
  3. project(Theta VERSION 1.0)
  4.  
  5. set(SOURCE_FILES
  6.     ../src/main.cpp
  7.     ../src/os.cpp
  8.  
  9.     ../src/ImGui/imgui.cpp
  10.     ../src/ImGui/imgui_tables.cpp
  11.     ../src/ImGui/imgui_draw.cpp
  12.     ../src/ImGui/imgui_widgets.cpp
  13.     ../src/ImGui/imgui-SFML.cpp
  14.     ../src/ImGui/imgui_demo.cpp
  15. )
  16.  
  17. add_executable(main ${SOURCE_FILES})
  18.  
  19. target_include_directories(main PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
  20.  
  21. link_directories(main PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/lib")
  22. target_link_libraries(
  23.     main PRIVATE sfml-system sfml-window sfml-graphics sfml-audio sfml-network "-framework OpenGL"
  24. )
  25.  
  26. set_target_properties(main PROPERTIES
  27.     CXX_STANDARD 20
  28.     CXX_EXTENSIONS OFF
  29. )
Advertisement
RAW Paste Data Copied
Advertisement