mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-09-15 15:13:21 +00:00
16 lines
452 B
CMake
16 lines
452 B
CMake
|
cmake_minimum_required(VERSION 3.13...3.19)
|
||
|
|
||
|
project(Examples LANGUAGES CXX)
|
||
|
|
||
|
if(NOT TARGET tomlplusplus::tomlplusplus)
|
||
|
find_package(tomlplusplus REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
add_executable(toml_to_json_transcoder toml_to_json_transcoder.cpp)
|
||
|
target_link_libraries(toml_to_json_transcoder PRIVATE tomlplusplus::tomlplusplus)
|
||
|
|
||
|
enable_testing()
|
||
|
add_test(NAME toml_to_json_transcoder
|
||
|
COMMAND toml_to_json_transcoder ${CMAKE_CURRENT_LIST_DIR}/example.toml
|
||
|
)
|