2018-04-12 19:12:45 -04:00
|
|
|
set(CATIMA_APPS catima_calculator)
|
2019-10-14 11:15:43 -04:00
|
|
|
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"
|
|
|
|
)
|
2019-11-24 14:12:56 -05:00
|
|
|
ExternalProject_Get_Property(json_hpp download_dir)
|
2018-04-12 19:12:45 -04:00
|
|
|
|
|
|
|
foreach(entry ${CATIMA_APPS})
|
|
|
|
add_executable(${entry} ${entry}.cpp)
|
|
|
|
target_link_libraries(${entry} catima)
|
2019-11-24 14:12:56 -05:00
|
|
|
target_include_directories(${entry} PRIVATE ${download_dir})
|
2018-04-12 19:12:45 -04:00
|
|
|
endforeach(entry in ${CATIMA_APPS})
|
|
|
|
|
|
|
|
install (TARGETS ${CATIMA_APPS} RUNTIME DESTINATION bin)
|