Browse Source

CMake changes (#1430)

* Added version to project
* Added Jolt::Jolt alias

Fixes #1426
Jorrit Rouwe 7 months ago
parent
commit
3ede71e810
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Build/CMakeLists.txt
  2. 1 0
      Jolt/Jolt.cmake

+ 1 - 1
Build/CMakeLists.txt

@@ -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)

+ 1 - 0
Jolt/Jolt.cmake

@@ -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