You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
589 B
20 lines
589 B
cmake_minimum_required(VERSION 3.0.2)
|
|
project(mcc)
|
|
|
|
|
|
find_package(GTest)
|
|
|
|
IF (ENABLE_GCOV AND NOT WIN32 AND NOT APPLE)
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
|
|
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
|
|
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage -lgcov")
|
|
ENDIF()
|
|
|
|
add_executable(mcc allocate.c expression.c compile.c dictionary.c types.c
|
|
allocate.h expression.h compile.h dictionary.h types.h )
|
|
target_link_libraries(mcc
|
|
gmock
|
|
gtest
|
|
pthread
|
|
)
|