Mercurial > hg > orthanc-stone
view Resources/CodeGeneration/testCppHandler/CMakeLists.txt @ 514:381144d2434f bgo-commands-codegen
merge AM fixes
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 11 Mar 2019 13:03:45 +0100 |
parents | d79f78971fae |
children | 1dbf2d9ed1e4 |
line wrap: on
line source
cmake_minimum_required(VERSION 2.8) project(testCppHandler) set(testCppHandler_Codegen_Deps ${CMAKE_CURRENT_LIST_DIR}/../test_data/test1.yaml ${CMAKE_CURRENT_LIST_DIR}/../template.in.h ) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/VsolMessages_generated.hpp COMMAND python ${CMAKE_CURRENT_LIST_DIR}/../stonegentool.py -o ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_LIST_DIR}/../test_data/test1.yaml DEPENDS ${testCppHandler_Codegen_Deps} ) include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(testCppHandler main.cpp ${CMAKE_CURRENT_BINARY_DIR}/VsolMessages_generated.hpp ${testCppHandler_Codegen_Deps}) target_include_directories(testCppHandler PUBLIC ${CMAKE_BINARY_DIR}) conan_target_link_libraries(testCppHandler) set_property(TARGET testCppHandler PROPERTY CXX_STANDARD 17) install(TARGETS testCppHandler DESTINATION bin)