blob: 7df39cc64722c2d5b75da5e05003afabd56b9c8f [file] [log] [blame]
# Software-based Trusted Platform Module (TPM) Emulator
# Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net>
#
# $Id: CMakeLists.txt 377 2010-02-16 14:52:57Z mast $
include_directories("${PROJECT_SOURCE_DIR}/tpm")
file(GLOB tpmd_SRCS "*.[h|c]")
add_executable(tpmd ${CMAKE_CURRENT_SOURCE_DIR}/tpmd.c)
add_library(tpmemu ${tpmd_SRCS})
if(MTM_EMULATOR)
add_definitions(-DMTM_EMULATOR)
target_link_libraries(tpmd mtm tpm crypto)
else()
target_link_libraries(tpmd tpm crypto)
endif()
install(TARGETS tpmd RUNTIME DESTINATION bin)