Merge pull request #1 from Lauchmelder23/master
Prepared project for Windows + Added CMake
This commit is contained in:
commit
3ad3bc36ef
26
CMakeLists.txt
Normal file
26
CMakeLists.txt
Normal 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
|
||||||
|
)
|
1160
lib/ImGuiFileDialog/dirent/dirent.h
Normal file
1160
lib/ImGuiFileDialog/dirent/dirent.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@
|
||||||
#define FRAMERATE 60.0f
|
#define FRAMERATE 60.0f
|
||||||
#define FRAMELENGTH (MILLISECONDS / FRAMERATE)
|
#define FRAMELENGTH (MILLISECONDS / FRAMERATE)
|
||||||
|
|
||||||
int main(int argc, char const *argv[])
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
// SDL initialisation
|
// SDL initialisation
|
||||||
SDL_Init(SDL_INIT_EVERYTHING);
|
SDL_Init(SDL_INIT_EVERYTHING);
|
||||||
|
|
Loading…
Reference in a new issue