|
|
@@ -85,11 +85,14 @@ if (NOT CMAKE_PROJECT_NAME STREQUAL Urho3D)
|
|
|
|
|
|
# Check existence of stdint.h for LibCpuId
|
|
|
include (CheckIncludeFiles)
|
|
|
- CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H)
|
|
|
+ check_include_files (stdint.h HAVE_STDINT_H)
|
|
|
if (HAVE_STDINT_H)
|
|
|
add_definitions (-DHAVE_STDINT_H)
|
|
|
endif ()
|
|
|
|
|
|
+ # Define that we are building mini Urho
|
|
|
+ add_definitions (-DMINI_URHO)
|
|
|
+
|
|
|
# Setup SDK-like include dir in the build tree for building the mini-urho
|
|
|
set (DEST_INCLUDE_DIR include/Urho3D)
|
|
|
file (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${DEST_INCLUDE_DIR}/ThirdParty)
|
|
|
@@ -97,9 +100,8 @@ if (NOT CMAKE_PROJECT_NAME STREQUAL Urho3D)
|
|
|
# Add dependency targets
|
|
|
add_subdirectory (${BAKED_CMAKE_SOURCE_DIR}/Source/ThirdParty/LibCpuId host/LibCpuId)
|
|
|
add_subdirectory (${BAKED_CMAKE_SOURCE_DIR}/Source/ThirdParty/LZ4 host/LZ4)
|
|
|
- add_subdirectory (${BAKED_CMAKE_SOURCE_DIR}/Source/ThirdParty/SDL host/SDL)
|
|
|
set (INCLUDE_DIRS ${BAKED_CMAKE_BINARY_DIR}/include ${BAKED_CMAKE_BINARY_DIR}/include/Urho3D ${CMAKE_BINARY_DIR}/${DEST_INCLUDE_DIR}/ThirdParty)
|
|
|
- set (LIBS LibCpuId SDL)
|
|
|
+ set (LIBS LibCpuId)
|
|
|
endif ()
|
|
|
|
|
|
# Define target name
|