mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
feat: add examples
This commit is contained in:
15
examples/unicode/CMakeLists.txt
Normal file
15
examples/unicode/CMakeLists.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(uni-algo
|
||||
GIT_REPOSITORY https://github.com/uni-algo/uni-algo.git
|
||||
GIT_SHALLOW ON # Download the branch without its history
|
||||
GIT_TAG v1.0.0) # The version you want to download
|
||||
|
||||
# Be aware that FetchContent_MakeAvailable requires CMake 3.14 or higher
|
||||
FetchContent_MakeAvailable(uni-algo)
|
||||
|
||||
add_executable(canonicalize canonicalize.cpp)
|
||||
target_link_libraries(canonicalize PRIVATE toml11::toml11 uni-algo::uni-algo)
|
||||
set_target_properties(canonicalize PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
Reference in New Issue
Block a user