1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00

Merge pull request #68 from hrosiak/jsonpp

json dep.
This commit is contained in:
Andrej Prochazka 2019-10-14 17:13:26 +02:00 committed by GitHub
commit 147e2da9d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 14723 deletions

View File

@ -1,8 +1,21 @@
set(CATIMA_APPS catima_calculator) set(CATIMA_APPS catima_calculator)
include(ExternalProject)
ExternalProject_Add(
json_hpp
URL https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp
DOWNLOAD_NO_EXTRACT 1
DOWNLOAD_NO_PROGRESS
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
PREFIX "external"
)
ExternalProject_Get_Property(json_hpp install_dir)
foreach(entry ${CATIMA_APPS}) foreach(entry ${CATIMA_APPS})
add_executable(${entry} ${entry}.cpp) add_executable(${entry} ${entry}.cpp)
target_link_libraries(${entry} catima) target_link_libraries(${entry} catima)
target_include_directories(${entry} PRIVATE ${install_dir})
endforeach(entry in ${CATIMA_APPS}) endforeach(entry in ${CATIMA_APPS})
install (TARGETS ${CATIMA_APPS} RUNTIME DESTINATION bin) install (TARGETS ${CATIMA_APPS} RUNTIME DESTINATION bin)

14723
bin/json.hpp

File diff suppressed because it is too large Load Diff