|
|
|
@ -38,15 +38,16 @@ 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)
|
|
|
|
|
SET(CMAKE_CXX_FLAGS "-fvisibility=hidden")
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
add_definitions(-DLINUX_BUILD)
|
|
|
|
|
SET(PROJECT_LIBS rt)
|
|
|
|
|
SET(CMAKE_CXX_FLAGS "-fvisibility=hidden")
|
|
|
|
|
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)
|
|
|
|
|
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
|
|
|