Skip to content

Commit 671931c

Browse files
committed
Added CMakeLists.txt
Version: 1.0.0
1 parent 2c295b6 commit 671931c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)