WIP: Switching from Premake to CMake build system
This commit is contained in:
21
CmakeLists.txt
Normal file
21
CmakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
CMAKE_MINIMUM_REQUIRED (VERSION 4.0)
|
||||
project(Yoggie)
|
||||
set(EXPORT_COMPILE_COMMANDS_JSON ON)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4099")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wclass-struct-conversion")
|
||||
endif()
|
||||
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
add_compile_definitions(GLFW_STATIC)
|
||||
|
||||
add_subdirectory(Editor)
|
||||
add_subdirectory(SandboxApp)
|
||||
include(libraries.cmake)
|
||||
add_subdirectory(YoggieEngine)
|
||||
|
||||
|
Reference in New Issue
Block a user