-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make cmake target names less generic so we can more easily integrate …
…with other projects
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
|
||
add_executable(cpp_example cpp_example.cpp) | ||
add_executable(bech32_cpp_example cpp_example.cpp) | ||
|
||
target_compile_features(cpp_example PRIVATE cxx_std_11) | ||
target_compile_options(cpp_example PRIVATE ${DCD_CXX_FLAGS}) | ||
set_target_properties(cpp_example PROPERTIES CXX_EXTENSIONS OFF) | ||
target_compile_features(bech32_cpp_example PRIVATE cxx_std_11) | ||
target_compile_options(bech32_cpp_example PRIVATE ${DCD_CXX_FLAGS}) | ||
set_target_properties(bech32_cpp_example PROPERTIES CXX_EXTENSIONS OFF) | ||
|
||
target_link_libraries(cpp_example bech32) | ||
target_link_libraries(bech32_cpp_example bech32) | ||
|
||
|
||
add_executable(c_example c_example.c) | ||
add_executable(bech32_c_example c_example.c) | ||
|
||
target_compile_features(c_example PRIVATE c_std_99) | ||
set_target_properties(c_example PROPERTIES C_EXTENSIONS OFF) | ||
target_compile_features(bech32_c_example PRIVATE c_std_99) | ||
set_target_properties(bech32_c_example PROPERTIES C_EXTENSIONS OFF) | ||
|
||
target_link_libraries(c_example bech32) | ||
target_link_libraries(bech32_c_example bech32) |