瀏覽代碼

Baseline CMakeLists and .gitignore

Lucien Greathouse 1 年之前
父節點
當前提交
6007fcc712
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 1 0
      .gitignore
  2. 16 0
      CMakeLists.txt

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/build*

+ 16 - 0
CMakeLists.txt

@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
+
+project(JoltC VERSION 0.1
+    DESCRIPTION "C Wrapper for Jolt Physics"
+    LANGUAGES CXX)
+
+add_library(joltc STATIC
+    JoltC/JoltPhysicsC.cpp
+    JoltC/JoltPhysicsC.h
+    JoltC/JoltPhysicsC_Extensions.cpp
+    JoltC/JoltPhysicsC_Tests.c
+)
+
+target_compile_features(joltc PUBLIC cxx_std_17)
+target_include_directories(joltc PUBLIC JoltPhysics)
+target_link_libraries(joltc PUBLIC JoltPhysics)