diff options
| author | santoleri-nvidia <[email protected]> | 2017-02-24 19:48:22 +0100 |
|---|---|---|
| committer | santoleri-nvidia <[email protected]> | 2017-02-24 19:48:22 +0100 |
| commit | f930643a042334fe490e9bdc3fecd9afd1799cde (patch) | |
| tree | 6e4df6aec15a5446cc0ebd92d92071fe43f496d2 /test/compiler/cmake | |
| parent | Updating to [email protected] and blast_tools_and_samples... (diff) | |
| parent | adding linux source (diff) | |
| download | blast-f930643a042334fe490e9bdc3fecd9afd1799cde.tar.xz blast-f930643a042334fe490e9bdc3fecd9afd1799cde.zip | |
adding linux support
Diffstat (limited to 'test/compiler/cmake')
| -rw-r--r-- | test/compiler/cmake/linux/BlastPerfTests.cmake | 24 | ||||
| -rw-r--r-- | test/compiler/cmake/linux/BlastUnitTests.cmake | 24 | ||||
| -rw-r--r-- | test/compiler/cmake/linux/CMakeLists.txt | 25 |
3 files changed, 73 insertions, 0 deletions
diff --git a/test/compiler/cmake/linux/BlastPerfTests.cmake b/test/compiler/cmake/linux/BlastPerfTests.cmake new file mode 100644 index 0000000..1ef9eb8 --- /dev/null +++ b/test/compiler/cmake/linux/BlastPerfTests.cmake @@ -0,0 +1,24 @@ +# +# 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 +) diff --git a/test/compiler/cmake/linux/BlastUnitTests.cmake b/test/compiler/cmake/linux/BlastUnitTests.cmake new file mode 100644 index 0000000..e8a333a --- /dev/null +++ b/test/compiler/cmake/linux/BlastUnitTests.cmake @@ -0,0 +1,24 @@ +# +# 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 +) diff --git a/test/compiler/cmake/linux/CMakeLists.txt b/test/compiler/cmake/linux/CMakeLists.txt new file mode 100644 index 0000000..be49d07 --- /dev/null +++ b/test/compiler/cmake/linux/CMakeLists.txt @@ -0,0 +1,25 @@ +#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 -std=c++0x") + +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) + + |