forked from paulsbrookes/BitmapPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
15 lines (14 loc) · 705 Bytes
/
CMakeLists.txt
File metadata and controls
15 lines (14 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 3.10)
project(BitmapPlusPlus VERSION "1.0.1" DESCRIPTION "Simple and Fast header only Bitmap (BMP) C++ library" LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
# Examples
option(BPP_BUILD_EXAMPLES "Requires BPP to build all examples inside examples/ folder." ON)
if(BPP_BUILD_EXAMPLES)
file(GLOB_RECURSE EXAMPLES_FILES ${CMAKE_SOURCE_DIR}/examples/*.cpp)
foreach(example_file ${EXAMPLES_FILES})
message(STATUS "Adding example ${example_file}")
get_filename_component(target_name ${example_file} NAME_WE)
include_directories(${target_name} ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(${target_name} ${example_file})
endforeach()
endif()