cmake_minimum_required(VERSION 2.8) # compile option add_definitions("-Wall -g -O0") #add_library(allocate_lib STATIC allocate.c) add_executable(allocate allocate_test.c ) #target_link_libraries(allocate allocate_lib) set(CMAKE_C_COMPILER $ENV{CbC_Clang}/clang)