blob: a4ad18f749ace308c62ebbbcb23a899b75a38729 [file] [log] [blame]
#
# Compiling/running tests
#
if (use_context)
add_definitions(-DUSE_CBOR_CONTEXT)
endif()
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${dist_dir}/dumper )
add_executable ( cose_dumper dumper.c )
target_link_libraries (cose_dumper PRIVATE cose-c )
## OpenSSL
target_include_directories(cose_dumper PRIVATE ${OPENSSL_INCLUDE_DIR})
#target_link_libraries( cose_dumper PRIVATE event_openssl)
target_link_libraries( cose_dumper PRIVATE ${OPENSSL_LIBRARIES} )
target_link_libraries( cose_dumper PRIVATE cn-cbor )
if ( MSVC )
message ( "test: ${build_shared_libs}")
message ( "verbose: ${verbose}")
target_link_libraries( cose_dumper PRIVATE ws2_32 )
endif ()
target_include_directories ( cose_dumper PRIVATE ../include )
target_include_directories ( cose_dumper PRIVATE ../src )
target_include_directories ( cose_dumper PUBLIC ../../cose/cn-cbor/include )
target_include_directories ( cose_dumper PUBLIC ../../cn-cbor/implement/cn-cbor/include )
enable_testing()
# add_test ( NAME cose_dumper COMMAND cose_dumper )