cmake: fix Mac OS X compilation

This commit is contained in:
Marc-André Moreau 2011-07-05 20:44:26 -04:00
parent f8fa387fae
commit a35f1e81cb
4 changed files with 12 additions and 1 deletions

View File

@ -63,6 +63,12 @@ include_directories(${CMAKE_SOURCE_DIR}/include)
# Configure files
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
# Mac OS X
if(APPLE)
include_directories(/opt/local/include)
link_directories(/opt/local/lib)
endif()
# Build CUnit
find_package(CUnit)
if(CUNIT_FOUND)

View File

@ -20,7 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CUnit/Basic.h>
#include <CUnit/CUnit.h>
#include <freerdp/types/base.h>
#include <freerdp/utils/stream.h>
#include <freerdp/utils/hexdump.h>

View File

@ -49,5 +49,6 @@ set(LIBFREERDP_CORE_SRCS
add_library(freerdp-core SHARED ${LIBFREERDP_CORE_SRCS})
target_link_libraries(freerdp-core ssl)
target_link_libraries(freerdp-core freerdp-utils)
install(TARGETS freerdp-core DESTINATION lib)

View File

@ -32,6 +32,10 @@
#include "tpkt.h"
#include "transport.h"
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
#define BUFFER_SIZE 16384
boolean