-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 990 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.1.2)
set (EXE_NAME "runPolyBenchSuite")
# Load additional CMake modules
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(LibVersioningCompiler REQUIRED)
include_directories(${LIBVC_INCLUDES})
link_directories(${LIBVC_LIB_DIR})
set (DEPS_LIBS ${DEPS_LIBS} ${LIBVC_LIBRARIES})
set (CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11")
if (HAVE_CLANG_LIB_COMPILER)
include_directories(${LIBCLANG_INCLUDES})
link_directories(${LIBCLANG_LIBRARY_DIR})
add_compile_definitions(HAVE_CLANG_LIB)
endif(HAVE_CLANG_LIB_COMPILER)
set (source_files
"tester/main.cpp"
)
add_executable(${EXE_NAME} ${source_files})
target_link_libraries(${EXE_NAME} ${DEPS_LIBS})
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE PATH "default install path" FORCE)
endif (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)