From 0c4e77952c14b3d0a0cd2f2f3f0c7143f0c56dfd Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 30 Jul 2021 15:07:39 +0200 Subject: [PATCH] Added CMake build script --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1ee2706 --- /dev/null +++ b/CMakeLists.txt @@ -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 +) \ No newline at end of file