Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordschaefer2011-01-05 11:59:12 -0500
committerdschaefer2011-01-05 11:59:12 -0500
commit8b93c12aeb2acb2abaa52dabe6c832fd1699a3eb (patch)
tree2332b9f44743b93b0dd77b17f3748dcc4690327f /CMakeLists.txt
parentd1d9b67d1087eb89db2b6ec85a49c572a9f7328e (diff)
downloadorg.eclipse.tcf.agent-8b93c12aeb2acb2abaa52dabe6c832fd1699a3eb.tar.gz
org.eclipse.tcf.agent-8b93c12aeb2acb2abaa52dabe6c832fd1699a3eb.tar.xz
org.eclipse.tcf.agent-8b93c12aeb2acb2abaa52dabe6c832fd1699a3eb.zip
Added CMake building for MinGW.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c02b93d..e6ca8dce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,13 +1,15 @@
cmake_minimum_required(VERSION 2.8)
-if (MSVC)
+set(CMAKE_COLOR_MAKEFILE OFF)
+
+if (WIN32)
include_directories(system/Windows)
include_directories(machine/x86_64)
set(PLAT_SOURCES
system/Windows/context-win32.c
system/Windows/pthreads-win32.c
system/Windows/windbgcache.c)
-endif (MSVC)
+endif (WIN32)
include_directories(.)
@@ -78,9 +80,13 @@ add_executable(agent main/main.c)
target_link_libraries(agent tcf)
+if(WIN32)
if(MSVC)
target_link_libraries(agent shell32.lib advapi32.lib Iphlpapi.lib WS2_32.lib version.lib)
+else(MSVC) # MinGW
+target_link_libraries(agent WS2_32 Iphlpapi)
endif(MSVC)
+endif(WIN32)
#./main/main_client.c
#./main/main_log.c

Back to the top