Commits

gyulalaszlo committed 2994889 Draft

Added CMAKE support.

  • Participants
  • Parent commits d68caf1
  • Branches gyulalaszlo/mkz-patches

Comments (0)

Files changed (1)

File CMakeLists.txt

+cmake_minimum_required(VERSION 2.8)
+
+project( bitsquid_foundation )
+enable_testing()
+
+add_library( bitsquid_foundation
+
+    array.h
+    collection_types.h
+    hash.h
+    math_types.h
+    memory.h
+    memory_types.h
+    murmur_hash.h
+    queue.h
+    string_stream.h
+    temp_allocator.h
+    types.h
+
+    memory.cpp
+    murmur_hash.cpp
+    string_stream.cpp
+  )
+
+add_executable( bitsquid_foundation_unit_test
+    unit_test.cpp
+  )
+
+target_link_libraries( bitsquid_foundation_unit_test
+    bitsquid_foundation
+  )
+
+
+add_test( bitsquid_foundation_unit_test
+    ${EXECUTABLE_OUTPUT_PATH}/bitsquid_foundation_unit_test
+  )
+
+
+include_directories( 
+  .
+  )