Merge pull request #1 from Lauchmelder23/master

Prepared project for Windows + Added CMake
This commit is contained in:
c1m5j 2021-07-30 15:13:28 +02:00 committed by GitHub
commit 3ad3bc36ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1187 additions and 1 deletions

26
CMakeLists.txt Normal file
View file

@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.10)
project(bpp)
set(CMAKE_CXX_STANDARD 17)
find_package(SDL2 CONFIG REQUIRED)
file(GLOB_RECURSE target_sources
"src/*.cpp"
"lib/*.cpp"
)
add_executable(bpp
${target_sources}
)
target_include_directories(bpp PUBLIC
"include"
"lib/imgui/include"
"lib/ImGuiFileDialog"
SDL2::SDL2
)
target_link_libraries(bpp PUBLIC
SDL2::SDL2 SDL2::SDL2main
)

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@
#define FRAMERATE 60.0f
#define FRAMELENGTH (MILLISECONDS / FRAMERATE)
int main(int argc, char const *argv[])
int main(int argc, char** argv)
{
// SDL initialisation
SDL_Init(SDL_INIT_EVERYTHING);