Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/CMakeLists.txt')
-rw-r--r--agent/CMakeLists.txt48
1 files changed, 3 insertions, 45 deletions
diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt
index d24a6bcb..d5fa5396 100644
--- a/agent/CMakeLists.txt
+++ b/agent/CMakeLists.txt
@@ -1,6 +1,6 @@
# -*- cmake -*-
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.1)
project(tcfagent C)
include(GNUInstallDirs)
@@ -8,52 +8,10 @@ set(CMAKE_COLOR_MAKEFILE OFF)
set(TCF_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..)
set(TCF_LIB_NAME tcf-agent)
-
-if(NOT WIN32)
- if(NOT TCF_OPSYS)
- set(TCF_OPSYS "GNU/Linux")
- endif()
- if(NOT TCF_MACHINE)
- set(TCF_MACHINE "x86_64")
- endif()
- if(TCF_MACHINE STREQUAL "armv6l")
- set(TCF_MACHINE "arm")
- endif()
- if(TCF_MACHINE STREQUAL "armv7l")
- set(TCF_MACHINE "arm")
- endif()
- if(TCF_MACHINE STREQUAL "ppc64")
- set(TCF_MACHINE "powerpc")
- endif()
- if(TCF_MACHINE STREQUAL "aarch64")
- set(TCF_MACHINE "a64")
- endif()
-endif()
-
-if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
- set(MULTI_THREADED_COMPILE_FLAGS "-pthreads")
- set(MULTI_THREADED_LINK_LIBS pthread rt)
-elseif(APPLE)
- set(MULTI_THREADED_COMPILE_FLAGS "-pthread -D_REENTRANT")
- set(MULTI_THREADED_LINK_FLAGS "")
- set(MULTI_THREADED_LINK_LIBS pthread)
-elseif(UNIX)
- set(MULTI_THREADED_COMPILE_FLAGS "-pthread -D_REENTRANT")
- set(MULTI_THREADED_LINK_FLAGS "")
- set(MULTI_THREADED_LINK_LIBS pthread rt)
- set(UUID_LIB_NAME uuid)
-elseif(WIN32)
- set(SOCKET_LINK_LIBS ws2_32 iphlpapi)
-endif()
-
include(../cmake-tcf-lib.txt)
-if(WIN32)
- target_link_libraries(${TCF_LIB_NAME} version.lib psapi.lib)
-endif()
-
-message(STATUS "operating system:" ${TCF_OPSYS})
-message(STATUS "machine:" ${TCF_MACHINE})
+message(STATUS "operating system: " ${TCF_OPSYS})
+message(STATUS "machine: " ${TCF_MACHINE})
add_executable(agent tcf/main/main.c)
target_link_libraries(agent ${TCF_LIB_NAME})

Back to the top