diff options
| author | Bryan Galdrikian <[email protected]> | 2018-05-31 11:36:08 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2018-05-31 11:36:08 -0700 |
| commit | 7115f60b91b5717d90f643fd692010905c7004db (patch) | |
| tree | effd68c6978751c517d54c2f2bb5bb6e7dc93e18 /test/compiler/cmake/linux | |
| parent | Updating BlastTool zip (diff) | |
| download | blast-1.1.3_rc1.tar.xz blast-1.1.3_rc1.zip | |
Blast 1.1.3. See docs/release_notes.txt.v1.1.3_rc1
Diffstat (limited to 'test/compiler/cmake/linux')
| -rwxr-xr-x[-rw-r--r--] | test/compiler/cmake/linux/BlastPerfTests.cmake | 56 | ||||
| -rwxr-xr-x[-rw-r--r--] | test/compiler/cmake/linux/BlastUnitTests.cmake | 58 | ||||
| -rwxr-xr-x[-rw-r--r--] | test/compiler/cmake/linux/CMakeLists.txt | 64 |
3 files changed, 89 insertions, 89 deletions
diff --git a/test/compiler/cmake/linux/BlastPerfTests.cmake b/test/compiler/cmake/linux/BlastPerfTests.cmake index 0491df5..13ddd34 100644..100755 --- a/test/compiler/cmake/linux/BlastPerfTests.cmake +++ b/test/compiler/cmake/linux/BlastPerfTests.cmake @@ -1,29 +1,29 @@ -# -# Build BlastPerfTests PS4 -# - -SET(BLASTPERFTESTS_PLATFORM_COMMON_FILES -) - -SET(BLASTPERFTESTS_PLATFORM_INCLUDES -) - -SET(BLASTPERFTESTS_COMPILE_DEFS - # Common to all configurations - ${BLASTTESTS_SLN_COMPILE_DEFS} - - $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}> - $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}> - $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}> - $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}> -) - -SET(BLASTPERFTESTS_PLATFORM_LINKED_LIBS - -lpthread - -lm -) - -IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - #Required to link against the Google Test binaries in pacman - SET(BLASTPERFTESTS_PLATFORM_COMPILE_OPTIONS "-D_GLIBCXX_USE_CXX11_ABI=0") +#
+# Build BlastPerfTests PS4
+#
+
+SET(BLASTPERFTESTS_PLATFORM_COMMON_FILES
+)
+
+SET(BLASTPERFTESTS_PLATFORM_INCLUDES
+)
+
+SET(BLASTPERFTESTS_COMPILE_DEFS
+ # Common to all configurations
+ ${BLASTTESTS_SLN_COMPILE_DEFS}
+
+ $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTPERFTESTS_PLATFORM_LINKED_LIBS
+ -lpthread
+ -lm
+)
+
+IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ #Required to link against the Google Test binaries in pacman
+ SET(BLASTPERFTESTS_PLATFORM_COMPILE_OPTIONS "-D_GLIBCXX_USE_CXX11_ABI=0")
ENDIF()
\ No newline at end of file diff --git a/test/compiler/cmake/linux/BlastUnitTests.cmake b/test/compiler/cmake/linux/BlastUnitTests.cmake index 62e9bee..4edba99 100644..100755 --- a/test/compiler/cmake/linux/BlastUnitTests.cmake +++ b/test/compiler/cmake/linux/BlastUnitTests.cmake @@ -1,29 +1,29 @@ -# -# Build BlastUnitTests PS4 -# - -SET(BLASTUNITTESTS_PLATFORM_COMMON_FILES -) - -SET(BLASTUNITTESTS_PLATFORM_INCLUDES -) - -SET(BLASTUNITTESTS_COMPILE_DEFS - # Common to all configurations - ${BLASTTESTS_SLN_COMPILE_DEFS} - - $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}> - $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}> - $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}> - $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}> -) - -SET(BLASTUNITTESTS_PLATFORM_LINKED_LIBS - -lpthread - -lm -) - -IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - #Required to link against the Google Test binaries in pacman - SET(BLASTUNITTESTS_PLATFORM_COMPILE_OPTIONS "-D_GLIBCXX_USE_CXX11_ABI=0") -ENDIF() +#
+# Build BlastUnitTests PS4
+#
+
+SET(BLASTUNITTESTS_PLATFORM_COMMON_FILES
+)
+
+SET(BLASTUNITTESTS_PLATFORM_INCLUDES
+)
+
+SET(BLASTUNITTESTS_COMPILE_DEFS
+ # Common to all configurations
+ ${BLASTTESTS_SLN_COMPILE_DEFS}
+
+ $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}>
+ $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}>
+ $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}>
+ $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}>
+)
+
+SET(BLASTUNITTESTS_PLATFORM_LINKED_LIBS
+ -lpthread
+ -lm
+)
+
+IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ #Required to link against the Google Test binaries in pacman
+ SET(BLASTUNITTESTS_PLATFORM_COMPILE_OPTIONS "-D_GLIBCXX_USE_CXX11_ABI=0")
+ENDIF()
diff --git a/test/compiler/cmake/linux/CMakeLists.txt b/test/compiler/cmake/linux/CMakeLists.txt index 03383f3..63dae8d 100644..100755 --- a/test/compiler/cmake/linux/CMakeLists.txt +++ b/test/compiler/cmake/linux/CMakeLists.txt @@ -1,32 +1,32 @@ -#Platform specific compile flags and project includes - -SET(CMAKE_CXX_FLAGS "-Wextra -fdiagnostics-show-option -fno-rtti -fno-exceptions -m64 -msse2 -mfpmath=sse -fpic -ffast-math -fno-exceptions -fno-rtti -Wno-invalid-offsetof -Wno-unknown-pragmas -Wno-multichar -Wno-sign-compare -std=c++0x") - -if (CMAKE_COMPILER_IS_GNUCXX) - #Starting with 6.0 -fPIE is the default and our gtest build can't link with this - if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie") - endif() -endif() - -SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -gdwarf-2") -SET(CMAKE_CXX_FLAGS_CHECKED "-O3 -g3 -gdwarf-2 -fno-strict-aliasing") -SET(CMAKE_CXX_FLAGS_PROFILE "-O3 -fno-strict-aliasing") -SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing") - -SET(BLASTTESTS_SLN_COMPILE_DEFS) -#NvBlastExt doesn't have the _CONSOLE flag - -SET(BLASTTESTS_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;) -SET(BLASTTESTS_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;) -SET(BLASTTESTS_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;) -SET(BLASTTESTS_SLN_RELEASE_COMPILE_DEFS NDEBUG;) - -SET(CMAKE_EXECUTABLE_SUFFIX ".elf") - - -# Include all of the projects -INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastUnitTests.cmake) -INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastPerfTests.cmake) - - +#Platform specific compile flags and project includes
+
+SET(CMAKE_CXX_FLAGS "-Wextra -fdiagnostics-show-option -fno-rtti -fno-exceptions -m64 -msse2 -mfpmath=sse -fpic -ffast-math -fno-exceptions -fno-rtti -Wno-invalid-offsetof -Wno-unknown-pragmas -Wno-multichar -Wno-sign-compare -std=c++0x")
+
+if (CMAKE_COMPILER_IS_GNUCXX)
+ #Starting with 6.0 -fPIE is the default and our gtest build can't link with this
+ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie")
+ endif()
+endif()
+
+SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -gdwarf-2")
+SET(CMAKE_CXX_FLAGS_CHECKED "-O3 -g3 -gdwarf-2 -fno-strict-aliasing")
+SET(CMAKE_CXX_FLAGS_PROFILE "-O3 -fno-strict-aliasing")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing")
+
+SET(BLASTTESTS_SLN_COMPILE_DEFS)
+#NvBlastExt doesn't have the _CONSOLE flag
+
+SET(BLASTTESTS_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;)
+SET(BLASTTESTS_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;)
+SET(BLASTTESTS_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;)
+SET(BLASTTESTS_SLN_RELEASE_COMPILE_DEFS NDEBUG;)
+
+SET(CMAKE_EXECUTABLE_SUFFIX ".elf")
+
+
+# Include all of the projects
+INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastUnitTests.cmake)
+INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastPerfTests.cmake)
+
+
|