set(CRYPTOBENCHLIB_NAME cryptobench_lib) # Dependencies # ... ## Configuration Template # This enables us to pull CMAKE variables into our source code, which is useful to keep things # like versioning and naming consistent. configure_file(cmake_variables.h.in ${CMAKE_SOURCE_DIR}/src/_gen/cmake_variables.h @ONLY) set(CRYPTOBENCHLIB_HEADERS ${CMAKE_SOURCE_DIR}/src/_gen/cmake_variables.h algo/hash.h) set(CRYPTOBENCHLIB_SOURCES ${CRYPTOBENCHLIB_HEADERS} algo/hash.c) add_library(${CRYPTOBENCHLIB_NAME} STATIC ${CRYPTOBENCHLIB_SOURCES}) set_target_properties(${CRYPTOBENCHLIB_NAME} PROPERTIES OUTPUT_NAME "cryptobench") target_include_directories(${CRYPTOBENCHLIB_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/src )