2023-04-27 16:13:19 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16.3)
|
2023-05-02 15:22:19 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
2023-04-27 16:13:19 +00:00
|
|
|
|
2023-05-03 16:40:47 +00:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
endif()
|
|
|
|
|
2023-04-27 16:13:19 +00:00
|
|
|
project(shadps4)
|
|
|
|
|
|
|
|
include_directories(third-party/)
|
|
|
|
include_directories(third-party/imgui/)
|
|
|
|
include_directories(third-party/imgui/backends)
|
|
|
|
include_directories(third-party/sdl/)
|
2023-04-28 09:46:29 +00:00
|
|
|
include_directories(third-party/fmt/include)
|
2023-05-02 15:22:19 +00:00
|
|
|
include_directories(third-party/magic_enum/include)
|
2023-04-27 16:13:19 +00:00
|
|
|
add_subdirectory("third-party")
|
|
|
|
|
|
|
|
#=================== EXAMPLE ===================
|
|
|
|
|
|
|
|
add_executable(shadps4
|
|
|
|
src/main.cpp
|
2023-05-02 15:22:19 +00:00
|
|
|
src/types.h
|
|
|
|
src/Core/FsFile.cpp
|
|
|
|
src/Core/FsFile.h
|
|
|
|
src/Loader/Elf.cpp
|
|
|
|
src/Loader/Elf.h
|
2023-05-03 16:40:47 +00:00
|
|
|
src/GUI/ElfViewer.cpp
|
|
|
|
src/GUI/ElfViewer.h)
|
2023-04-27 16:13:19 +00:00
|
|
|
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
|
2023-04-28 11:36:05 +00:00
|
|
|
target_link_libraries(shadps4 PUBLIC fmt spdlog IMGUI SDL3-shared ${OPENGL_LIBRARY})
|