-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d130706
commit 299f0de
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |