Mercurial > hg > orthanc-stone
view Resources/CodeGeneration/testWasmIntegrated/CMakeLists.txt @ 495:6405435480ae bgo-commands-codegen
Fixed template to add dump capabilities + started work on an integrated TS/WASM test
author | bgo-osimis |
---|---|
date | Sat, 23 Feb 2019 14:14:32 +0100 |
parents | |
children | 8b6ceae45ba0 |
line wrap: on
line source
cmake_minimum_required(VERSION 2.8) project(testWasmIntegratedCpp) set(testWasmIntegratedCpp_Codegen_Deps ${CMAKE_CURRENT_LIST_DIR}/testWasmIntegratedCpp_api.yaml ${CMAKE_CURRENT_LIST_DIR}/../template.in.h ${CMAKE_CURRENT_LIST_DIR}/../template.in.ts ) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testWasmIntegratedCpp_generated.hpp ${CMAKE_CURRENT_BINARY_DIR}/testWasmIntegratedCpp_generated.ts COMMAND python3 ${CMAKE_CURRENT_LIST_DIR}/../stonegentool.py -o ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_LIST_DIR}/../test_data/testWasmIntegratedCpp_api.yaml DEPENDS ${testCppHandler_Codegen_Deps} ) add_library(testWasmIntegratedCpp main.cpp ${CMAKE_CURRENT_BINARY_DIR}/testWasmIntegratedCpp_generated.hpp ${testCppHandler_Codegen_Deps}) target_include_directories(testWasmIntegratedCpp PUBLIC ${CMAKE_BINARY_DIR}) set_property(TARGET testWasmIntegratedCpp PROPERTY CXX_STANDARD 11)