Skip to content
Snippets Groups Projects
Commit c59feb12 authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

Update CMakeLists.txt

parent 3af556a6
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required (VERSION 2.8.11)
project (SAXPY)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Since different compilers support different options, a typical use of this command is in a compiler-specific conditional clause:
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# using Clang
if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") # using Intel C++
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wall -Wextra -pedantic -Werror -O3)
# using GCC
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# using Intel C++
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# using Visual Studio C++
add_compile_options(-Wall -Wextra -pedantic -Werror -O3) # using GCC
endif()
# List of source files into "SOURCES"
......@@ -33,5 +26,4 @@ add_executable (exec main.c)
# Link the executable to the saxpy library. Since the saxpy library has
# public include directories we will use those link directories when building
# exec
target_link_libraries (exec LINK_PUBLIC saxpy)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment