aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..7d3a91e
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,26 @@
+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
+)