@@ -84,8 +84,8 @@ endif()
84
84
85
85
set (_NBL_EMBED_BUILTIN_RESOURCES_ ${NBL_EMBED_BUILTIN_RESOURCES} )
86
86
87
- #set(_NBL_TARGET_ARCH_ARM_ ${IRR_TARGET_ARCH_ARM }) #uncomment in the future
88
- set (__NBL_FAST_MATH ${IRR_FAST_MATH } )
87
+ #set(_NBL_TARGET_ARCH_ARM_ ${NBL_TARGET_ARCH_ARM }) #uncomment in the future
88
+ set (__NBL_FAST_MATH ${NBL_FAST_MATH } )
89
89
set (_NBL_DEBUG 0 )
90
90
set (_NBL_RELWITHDEBINFO 0 )
91
91
configure_file ("${NBL_ROOT_PATH} /include/nbl/config/BuildConfigOptions.h.in" "${NABLA_CONF_DIR_RELEASE} /BuildConfigOptions.h" )
@@ -364,7 +364,7 @@ macro(nbl_target_link_gli _trgt)
364
364
target_include_directories (${_trgt} PUBLIC ${THIRD_PARTY_SOURCE_DIR} /gli )
365
365
endmacro ()
366
366
367
- add_library (Irrlicht STATIC
367
+ add_library (Nabla STATIC
368
368
${NABLA_SRCS_COMMON}
369
369
${NABLA_SRCS_NORMAL}
370
370
${NABLA_HEADERS}
@@ -377,23 +377,23 @@ add_library(Irrlicht STATIC
377
377
)
378
378
379
379
#TODO maybe make a macro to do this (note: it's also used in common.cmake)
380
- set_property (TARGET Irrlicht PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
381
-
382
- add_dependencies (Irrlicht openssl_build )
383
- nbl_target_link_zlib (Irrlicht )
384
- nbl_target_link_openssl (Irrlicht )
385
- nbl_target_link_shaderc (Irrlicht )
386
- nbl_target_link_libjpeg (Irrlicht )
387
- nbl_target_link_libpng (Irrlicht )
388
- nbl_target_link_openexr (Irrlicht )
380
+ set_property (TARGET Nabla PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
381
+
382
+ add_dependencies (Nabla openssl_build )
383
+ nbl_target_link_zlib (Nabla )
384
+ nbl_target_link_openssl (Nabla )
385
+ nbl_target_link_shaderc (Nabla )
386
+ nbl_target_link_libjpeg (Nabla )
387
+ nbl_target_link_libpng (Nabla )
388
+ nbl_target_link_openexr (Nabla )
389
389
if (_NBL_COMPILE_WITH_GLI_ )
390
- nbl_target_link_gli (Irrlicht )
390
+ nbl_target_link_gli (Nabla )
391
391
endif ()
392
- nbl_target_include_parallel_hashmap (Irrlicht )
392
+ nbl_target_include_parallel_hashmap (Nabla )
393
393
394
- target_link_libraries (Irrlicht INTERFACE ${OPENGL_gl_LIBRARY} )
394
+ target_link_libraries (Nabla INTERFACE ${OPENGL_gl_LIBRARY} )
395
395
if (UNIX )
396
- target_link_libraries (Irrlicht INTERFACE
396
+ target_link_libraries (Nabla INTERFACE
397
397
${X11_LIBRARIES}
398
398
${X11_Xrandr_LIB}
399
399
${X11_Xxf86vm_LIB}
@@ -403,7 +403,7 @@ if (UNIX)
403
403
)
404
404
endif ()
405
405
406
- target_include_directories (Irrlicht PUBLIC
406
+ target_include_directories (Nabla PUBLIC
407
407
${NBL_ROOT_PATH} /include
408
408
${COMMON_INCLUDE_DIRS}
409
409
${THIRD_PARTY_SOURCE_DIR}
@@ -412,39 +412,39 @@ target_include_directories(Irrlicht PUBLIC
412
412
"$<$<CONFIG:RELEASE>:${NABLA_CONF_DIR_RELEASE} >"
413
413
"$<$<CONFIG:RELWITHDEBINFO>:${NABLA_CONF_DIR_RELWITHDEBINFO} >"
414
414
)
415
- target_include_directories (Irrlicht PUBLIC ${NBL_ROOT_PATH} /src ${NBL_ROOT_PATH} /source/Nabla ${NBL_ROOT_PATH} /src/3rdparty ) # this should be PRIVATE, but things from /src (or /source) are sometimes included in things in /include and so examples have to put source dirs into theirs Include Path
416
- target_include_directories (Irrlicht PRIVATE ${CMAKE_BINARY_DIR} /include )
415
+ target_include_directories (Nabla PUBLIC ${NBL_ROOT_PATH} /src ${NBL_ROOT_PATH} /source/Nabla ${NBL_ROOT_PATH} /src/3rdparty ) # this should be PRIVATE, but things from /src (or /source) are sometimes included in things in /include and so examples have to put source dirs into theirs Include Path
416
+ target_include_directories (Nabla PRIVATE ${CMAKE_BINARY_DIR} /include )
417
417
if (UNIX )
418
- target_include_directories (Irrlicht PUBLIC
418
+ target_include_directories (Nabla PUBLIC
419
419
${X11_INCLUDE_DIR}
420
420
${X11_Xrandr_INCLUDE_PATH}
421
421
${X11_xf86vmode_INCLUDE_PATH} )
422
422
endif ()
423
423
424
424
425
425
if (NBL_COMPILE_WITH_CUDA )
426
- target_include_directories (Irrlicht PUBLIC ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} )
426
+ target_include_directories (Nabla PUBLIC ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} )
427
427
endif ()
428
428
429
- target_compile_definitions (Irrlicht
429
+ target_compile_definitions (Nabla
430
430
PRIVATE _NBL_STATIC_LIB_ SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS
431
431
PUBLIC UNW_LOCAL_ONLY
432
432
)
433
433
434
434
if (MSVC ) #on MSVC it won't compile without this option!
435
- target_compile_options (Irrlicht PUBLIC /bigobj )
435
+ target_compile_options (Nabla PUBLIC /bigobj )
436
436
endif ()
437
437
438
438
#precompiled headers
439
439
if (NBL_PCH )
440
- target_precompile_headers (Irrlicht PUBLIC "${CMAKE_CURRENT_SOURCE_DIR} /pch.h" )
440
+ target_precompile_headers (Nabla PUBLIC "${CMAKE_CURRENT_SOURCE_DIR} /pch.h" )
441
441
endif ()
442
442
443
443
444
444
if (NBL_EMBED_BUILTIN_RESOURCES )
445
445
add_custom_target (builtin_resources
446
446
DEPENDS ${CMAKE_BINARY_DIR} /include/nbl/builtin/builtinResources.h ${CMAKE_CURRENT_BINARY_DIR} /builtin/builtinResourceData.cpp )
447
- add_dependencies (Irrlicht builtin_resources )
447
+ add_dependencies (Nabla builtin_resources )
448
448
elseif ()
449
449
foreach (X IN LISTS nbl_resources_to_embed )
450
450
list (APPEND NABLA_HEADERS_PUBLIC ${NBL_ROOT_PATH} /include/${X} )
@@ -471,9 +471,9 @@ macro(nbl_install_lib _TRGT)
471
471
install (TARGETS ${_TRGT} ARCHIVE DESTINATION relwithdebinfo/lib CONFIGURATIONS RelWithDebInfo )
472
472
endmacro ()
473
473
# Install main lib
474
- set_target_properties (Irrlicht PROPERTIES DEBUG_POSTFIX _debug )
475
- set_target_properties (Irrlicht PROPERTIES RELWITHDEBDINFO_POSTFIX _relwithdebinfo )
476
- nbl_install_lib (Irrlicht )
474
+ set_target_properties (Nabla PROPERTIES DEBUG_POSTFIX _debug )
475
+ set_target_properties (Nabla PROPERTIES RELWITHDEBDINFO_POSTFIX _relwithdebinfo )
476
+ nbl_install_lib (Nabla )
477
477
478
478
#install dependencies
479
479
nbl_install_lib (glslang )
0 commit comments