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) IF(UNIX)
add_definitions(-DLINUX_BUILD) add_definitions(-DLINUX_BUILD)
SET(PROJECT_LIBS rt) SET(PROJECT_LIBS rt)
ADD_LIBRARY(dfconnect SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(dfconnect ${PROJECT_LIBS})
ELSE(UNIX) ELSE(UNIX)
# SET(PROJECT_LIBS psapi) # SET(PROJECT_LIBS psapi)
ADD_LIBRARY(SDL SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(SDL ${PROJECT_LIBS})
ENDIF(UNIX) ENDIF(UNIX)
ADD_LIBRARY(dfconnect SHARED ${PROJECT_SRCS})
TARGET_LINK_LIBRARIES(dfconnect ${PROJECT_LIBS})

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