* Added version to project * Added Jolt::Jolt alias Fixes #1426
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
-project(JoltPhysics CXX)
+project(JoltPhysics VERSION 5.2.1 LANGUAGES CXX)
# When turning this option on, the library will be compiled using assertions. By default asserts are enabled in Debug build.
option(USE_ASSERTS "Enable asserts" OFF)
@@ -475,6 +475,7 @@ source_group(TREE ${JOLT_PHYSICS_ROOT} FILES ${JOLT_PHYSICS_SRC_FILES})
# Create Jolt lib
add_library(Jolt ${JOLT_PHYSICS_SRC_FILES})
+add_library(Jolt::Jolt ALIAS Jolt)
if (BUILD_SHARED_LIBS)
# Set default visibility to hidden