9.10.2011 - stable backup commit

This commit is contained in:
peri4
2011-10-09 22:23:52 +04:00
parent 29190ea465
commit 39ec9cac5c
39 changed files with 1170 additions and 512 deletions

View File

@@ -2,7 +2,11 @@ project(pip)
cmake_minimum_required(VERSION 2.6)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} .)
file(GLOB CPPS "pi*.cpp")
add_definitions(-O2 -g3 -Wall)
if (${WIN32})
add_definitions(-Wall -O2)
else (${WIN32})
add_definitions(-Wall -O2 -g3)
endif (${WIN32})
add_library(pip SHARED ${CPPS})
if (${WIN32})
target_link_libraries(pip pthread ws2_32)
@@ -11,7 +15,7 @@ else (${WIN32})
endif (${WIN32})
add_executable(pip_test "main.cpp")
if (${WIN32})
target_link_libraries(pip_test pip pthread ws2_32)
target_link_libraries(pip_test pthread ws2_32 pip)
else (${WIN32})
target_link_libraries(pip_test pip pthread rt)
target_link_libraries(pip_test pthread rt pip)
endif (${WIN32})