Skip to content

Commit

Permalink
make cmake target names less generic so we can more easily integrate …
Browse files Browse the repository at this point in the history
…with other projects
  • Loading branch information
danpape committed Feb 1, 2019
1 parent 9d9608c commit 08ab17f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions examples/CMakeLists.txt
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)

0 comments on commit 08ab17f

Please sign in to comment.