CMakeLists.txt 441 B

12345678910111213
  1. # Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. cmake_minimum_required (VERSION 3.5)
  4. project(hello_world)
  5. set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-unused-command-line-argument")
  6. set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS},--export=main")
  7. add_library(print print.c)
  8. add_executable(hello_world main.c)
  9. target_link_libraries(hello_world print)