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

@ -38,10 +38,11 @@ LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
IF(UNIX)
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)
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;