sc/perf/CMakeLists.txt
2020-11-11 01:19:49 +03:00

13 lines
339 B
CMake

cmake_minimum_required(VERSION 3.5.1)
project(sc_perf C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
add_executable(sc_perf perf_example.c sc_perf.h sc_perf.c)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -pedantic -Werror -D_GNU_SOURCE")
endif ()