small tweak to cmakelists

develop
Petr Mrázek 2010-01-05 03:04:42 +00:00
parent c7a5fbff11
commit d43adaef6c
2 changed files with 8 additions and 7 deletions

@ -36,12 +36,13 @@ SET_SOURCE_FILES_PROPERTIES( ${PROJECT_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE )
LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
IF(UNIX)
add_definitions(-DLINUX_BUILD)
SET(PROJECT_LIBS rt)
add_definitions(-DLINUX_BUILD)
SET(PROJECT_LIBS rt)
ADD_LIBRARY(dfconnect SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(dfconnect ${PROJECT_LIBS})
ELSE(UNIX)
# SET(PROJECT_LIBS psapi)
# SET(PROJECT_LIBS psapi)
ADD_LIBRARY(SDL SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(SDL ${PROJECT_LIBS})
ENDIF(UNIX)
ADD_LIBRARY(dfconnect SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(dfconnect ${PROJECT_LIBS})

@ -31,7 +31,7 @@ distribution.
#include <string.h>
#include <unistd.h>
#include "shms.h"
#include <pthread.h>
// various crud
extern int errorstate;
extern char *shm;