-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConfig.cmake
31 lines (26 loc) · 997 Bytes
/
Config.cmake
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
#################################
# HPTL CONFIG
#################################
option(HPTL_DEBUG "Enable HPTL debug text" OFF)
option(HPTL_ONLYLINUXAPI "Disables custom HPTL functionality and compiles as a Linux-Time wrapper" OFF)
option(HPTL_128b "Compiles in 128b mode" ON)
option(HPTL_128b_mixed "Compiles in 128b mode, but (almost) without fill the 64b high part" ON)
#set (HPTL_DEBUG "https" CACHE STRING "The server api URI-protocol")
#check RDTSC (only Intel)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
option(HPTL_TSC "Enable TSC" ON)
endif()
include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" HPTL_CLOCKREALTIME)
#################################
# CONFIG FILES
#################################
#Config file
#configure_file (
# "${PROJECT_SOURCE_DIR}/include/config.hpp.in"
# "${PROJECT_BINARY_DIR}/include/config.hpp"
# )
configure_file (
"${PROJECT_SOURCE_DIR}/include/hptl_config.h.in"
"${PROJECT_SOURCE_DIR}/include/hptl_config.h"
)