summaryrefslogtreecommitdiffstats
path: root/tests/UUID/CMakeLists.txt
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-11 23:17:51 +0200
committerMattes D <github@xoft.cz>2017-09-11 23:17:51 +0200
commit642fc239e2fc4524c47e5adba405bbdfcb7d0239 (patch)
tree34781378449fef884cac3871e228b99d0347b40d /tests/UUID/CMakeLists.txt
parentFix crash for players out of the world. Fixes #4006 (#4007) (diff)
downloadcuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar.gz
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar.bz2
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar.lz
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar.xz
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.tar.zst
cuberite-642fc239e2fc4524c47e5adba405bbdfcb7d0239.zip
Diffstat (limited to 'tests/UUID/CMakeLists.txt')
-rw-r--r--tests/UUID/CMakeLists.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/UUID/CMakeLists.txt b/tests/UUID/CMakeLists.txt
new file mode 100644
index 000000000..72746d10d
--- /dev/null
+++ b/tests/UUID/CMakeLists.txt
@@ -0,0 +1,35 @@
+enable_testing()
+
+set (SHARED_SRCS
+ ${CMAKE_SOURCE_DIR}/src/UUID.cpp
+ ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp
+)
+
+set (SHARED_HDRS
+ ${CMAKE_SOURCE_DIR}/src/UUID.h
+ ${CMAKE_SOURCE_DIR}/src/StringUtils.h
+)
+
+set (SRCS
+ UUIDTest.cpp
+)
+
+source_group("Shared" FILES ${SHARED_SRCS} ${SHARED_HDRS})
+source_group("Sources" FILES ${SRCS})
+
+add_executable(UUIDTest ${SRCS} ${SHARED_SRCS} ${SHARED_HDRS})
+target_link_libraries(UUIDTest mbedcrypto)
+target_compile_definitions(UUIDTest PRIVATE TEST_GLOBALS=1)
+target_include_directories(UUIDTest PRIVATE
+ ${CMAKE_SOURCE_DIR}/src/
+ ${CMAKE_SOURCE_DIR}/lib/mbedtls/include
+)
+
+add_test(NAME UUID-test COMMAND UUIDTest)
+
+
+# Put the projects into solution folders (MSVC):
+set_target_properties(
+ UUIDTest
+ PROPERTIES FOLDER Tests
+)