chore(cmake) propagate version
This commit is contained in:
parent
42c0af0dbf
commit
1a7f3415ad
@ -59,6 +59,14 @@ ELSE ()
|
||||
SET_TARGET_PROPERTIES(ICEngine PROPERTIES OUTPUT_NAME "ICEngine")
|
||||
ENDIF ()
|
||||
|
||||
configure_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/engine/config.hpp.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/engine/config.hpp"
|
||||
)
|
||||
|
||||
target_include_directories(ICEngine PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
IF (BUILD_EXAMPLES)
|
||||
INCLUDE_DIRECTORIES(examples/server)
|
||||
INCLUDE_DIRECTORIES(examples/client)
|
||||
|
6
engine/config.hpp.in
Normal file
6
engine/config.hpp.in
Normal file
@ -0,0 +1,6 @@
|
||||
//
|
||||
// Created by illyum on 9/15/2024.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#define PROJECT_VERSION "@PROJECT_VERSION@"
|
Loading…
x
Reference in New Issue
Block a user