quantumwarpgamething/CMakeLists.txt

33 lines
1.1 KiB
CMake
Raw Permalink Normal View History

2023-04-28 17:52:36 +00:00
cmake_minimum_required(VERSION 3.25)
project(quantumwarpgamething)
set(CMAKE_CXX_STANDARD 17)
find_package( OpenGL REQUIRED )
include_directories(${OPENGL_INCLUDE_DIRS})
set( GLFW_BUILD_DOCS OFF CACHE BOOL "GLFW lib only" )
set( GLFW_INSTALL OFF CACHE BOOL "GLFW lib only" )
add_subdirectory(glfw)
if( MSVC )
SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:mainCRTStartup" )
endif()
add_subdirectory(plog)
add_executable(
quantumwarpgamething
src/main.cpp
src/imgui/imconfig.h
src/imgui/imgui.cpp
src/imgui/imgui.h
src/imgui/imgui_demo.cpp
src/imgui/imgui_draw.cpp
src/imgui/imgui_internal.h
src/imgui/imgui_tables.cpp
src/imgui/imgui_widgets.cpp
src/imgui/imstb_rectpack.h
src/imgui/imstb_textedit.h
src/imgui/imstb_truetype.h
src/imgui/imgui_impl_glfw.cpp src/imgui/imgui_impl_glfw.h src/imgui/imgui_impl_opengl3.cpp src/imgui/imgui_impl_opengl3.h src/imgui/imgui_impl_opengl3_loader.h src/debug.cpp src/debug.h)
target_link_libraries(quantumwarpgamething ${OPENGL_LIBRARIES} glfw plog)