diff options
Diffstat (limited to 'sdk/compiler/cmake/NvBlastGlobals.cmake')
| -rwxr-xr-x[-rw-r--r--] | sdk/compiler/cmake/NvBlastGlobals.cmake | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/sdk/compiler/cmake/NvBlastGlobals.cmake b/sdk/compiler/cmake/NvBlastGlobals.cmake index f854ccc..92dfc27 100644..100755 --- a/sdk/compiler/cmake/NvBlastGlobals.cmake +++ b/sdk/compiler/cmake/NvBlastGlobals.cmake @@ -1,68 +1,68 @@ -# -# Build NvBlastGlobals common -# - -SET(GLOBALS_DIR ${PROJECT_SOURCE_DIR}/globals) -SET(COMMON_SOURCE_DIR ${PROJECT_SOURCE_DIR}/common) - -# Include here after the directories are defined so that the platform specific file can use the variables. -include(${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/NvBlastGlobals.cmake OPTIONAL) - -SET(COMMON_FILES - ${COMMON_SOURCE_DIR}/NvBlastAssert.cpp - ${COMMON_SOURCE_DIR}/NvBlastAssert.h -) - -SET(SOURCE_FILES - ${GLOBALS_DIR}/source/NvBlastGlobals.cpp - ${GLOBALS_DIR}/source/NvBlastProfiler.cpp - ${GLOBALS_DIR}/source/NvBlastProfilerInternal.h -) - -SET(PUBLIC_FILES - ${GLOBALS_DIR}/include/NvBlastGlobals.h - ${GLOBALS_DIR}/include/NvBlastAllocator.h - ${GLOBALS_DIR}/include/NvBlastProfiler.h - ${GLOBALS_DIR}/include/NvBlastDebugRender.h -) - -ADD_LIBRARY(NvBlastGlobals SHARED - ${COMMON_FILES} - ${SOURCE_FILES} - ${PUBLIC_FILES} -) - -SOURCE_GROUP("common" FILES ${COMMON_FILES}) -SOURCE_GROUP("source" FILES ${SOURCE_FILES}) -SOURCE_GROUP("public" FILES ${PUBLIC_FILES}) - -# Target specific compile options - -TARGET_INCLUDE_DIRECTORIES(NvBlastGlobals - PUBLIC ${GLOBALS_DIR}/include - PUBLIC ${GLOBALS_DIR}/source - PRIVATE ${COMMON_SOURCE_DIR} -) - -TARGET_COMPILE_DEFINITIONS(NvBlastGlobals - PRIVATE ${BLASTGLOBALS_COMPILE_DEFS} -) - -TARGET_COMPILE_OPTIONS(NvBlastGlobals - PRIVATE ${BLASTGLOBALS_PLATFORM_COMPILE_OPTIONS} -) - -SET_TARGET_PROPERTIES(NvBlastGlobals PROPERTIES - PDB_NAME_DEBUG "NvBlastGlobals${CMAKE_DEBUG_POSTFIX}" - PDB_NAME_CHECKED "NvBlastGlobals${CMAKE_CHECKED_POSTFIX}" - PDB_NAME_PROFILE "NvBlastGlobals${CMAKE_PROFILE_POSTFIX}" - PDB_NAME_RELEASE "NvBlastGlobals${CMAKE_RELEASE_POSTFIX}" -) - -# Do final direct sets after the target has been defined -TARGET_LINK_LIBRARIES(NvBlastGlobals - PRIVATE NvBlast - - PUBLIC ${BLASTGLOBALS_PLATFORM_LINKED_LIBS} -) - +#
+# Build NvBlastGlobals common
+#
+
+SET(GLOBALS_DIR ${PROJECT_SOURCE_DIR}/globals)
+SET(COMMON_SOURCE_DIR ${PROJECT_SOURCE_DIR}/common)
+
+# Include here after the directories are defined so that the platform specific file can use the variables.
+include(${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/NvBlastGlobals.cmake OPTIONAL)
+
+SET(COMMON_FILES
+ ${COMMON_SOURCE_DIR}/NvBlastAssert.cpp
+ ${COMMON_SOURCE_DIR}/NvBlastAssert.h
+)
+
+SET(SOURCE_FILES
+ ${GLOBALS_DIR}/source/NvBlastGlobals.cpp
+ ${GLOBALS_DIR}/source/NvBlastProfiler.cpp
+ ${GLOBALS_DIR}/source/NvBlastProfilerInternal.h
+)
+
+SET(PUBLIC_FILES
+ ${GLOBALS_DIR}/include/NvBlastGlobals.h
+ ${GLOBALS_DIR}/include/NvBlastAllocator.h
+ ${GLOBALS_DIR}/include/NvBlastProfiler.h
+ ${GLOBALS_DIR}/include/NvBlastDebugRender.h
+)
+
+ADD_LIBRARY(NvBlastGlobals SHARED
+ ${COMMON_FILES}
+ ${SOURCE_FILES}
+ ${PUBLIC_FILES}
+)
+
+SOURCE_GROUP("common" FILES ${COMMON_FILES})
+SOURCE_GROUP("source" FILES ${SOURCE_FILES})
+SOURCE_GROUP("public" FILES ${PUBLIC_FILES})
+
+# Target specific compile options
+
+TARGET_INCLUDE_DIRECTORIES(NvBlastGlobals
+ PUBLIC ${GLOBALS_DIR}/include
+ PUBLIC ${GLOBALS_DIR}/source
+ PRIVATE ${COMMON_SOURCE_DIR}
+)
+
+TARGET_COMPILE_DEFINITIONS(NvBlastGlobals
+ PRIVATE ${BLASTGLOBALS_COMPILE_DEFS}
+)
+
+TARGET_COMPILE_OPTIONS(NvBlastGlobals
+ PRIVATE ${BLASTGLOBALS_PLATFORM_COMPILE_OPTIONS}
+)
+
+SET_TARGET_PROPERTIES(NvBlastGlobals PROPERTIES
+ PDB_NAME_DEBUG "NvBlastGlobals${CMAKE_DEBUG_POSTFIX}"
+ PDB_NAME_CHECKED "NvBlastGlobals${CMAKE_CHECKED_POSTFIX}"
+ PDB_NAME_PROFILE "NvBlastGlobals${CMAKE_PROFILE_POSTFIX}"
+ PDB_NAME_RELEASE "NvBlastGlobals${CMAKE_RELEASE_POSTFIX}"
+)
+
+# Do final direct sets after the target has been defined
+TARGET_LINK_LIBRARIES(NvBlastGlobals
+ PRIVATE NvBlast
+
+ PUBLIC ${BLASTGLOBALS_PLATFORM_LINKED_LIBS}
+)
+
|