We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c295b6 commit 671931cCopy full SHA for 671931c
CMakeLists.txt
@@ -0,0 +1,14 @@
1
+cmake_minimum_required(VERSION 3.10)
2
+project(BitmapPlusPlus VERSION "1.0.0" DESCRIPTION "Simple and Fast header only Bitmap (BMP) C++ library" LANGUAGES CXX)
3
+
4
+# Examples
5
+option(BPP_BUILD_EXAMPLES "Requires BPP to build all examples inside examples/ folder." ON)
6
+if(BPP_BUILD_EXAMPLES)
7
+ file(GLOB_RECURSE EXAMPLES_FILES ${CMAKE_SOURCE_DIR}/examples/*.cpp)
8
+ foreach(example_file ${EXAMPLES_FILES})
9
+ message(STATUS "Adding example ${example_file}")
10
+ get_filename_component(target_name ${example_file} NAME_WE)
11
+ include_directories(${target_name} ${CMAKE_SOURCE_DIR}/include/)
12
+ add_executable(${target_name} ${example_file})
13
+ endforeach()
14
+endif()
0 commit comments