Skip to content

Commit

Permalink
Add examples list file
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyanon committed Jan 25, 2021
1 parent d130706 commit 299f0de
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.14)

project(refl-cpp-examples CXX)

include(FetchContent)
FetchContent_Declare(refl-cpp SOURCE_DIR "${PROJECT_SOURCE_DIR}/..")
FetchContent_MakeAvailable(refl-cpp)

set(
examples
binding
builders
custom-rtti
dao
inheritance
# macro
partials
proxy
serialization
struct-of-arrays
)

foreach(example IN LISTS examples)
add_executable("${example}" "example-${example}.cpp")
target_link_libraries("${example}" PRIVATE refl-cpp::refl-cpp)
target_compile_features("${example}" PRIVATE cxx_std_17)
endforeach()

0 comments on commit 299f0de

Please sign in to comment.