0.4.10.4.2
|
Last change
on this file since 465866c was
465866c,
checked in by Michael Medin <michael@…>, 12 months ago
|
|
2012-06-05 MickeM
- Tweaked all servers to use the new internals and added first testcase for NSCP socket
2012-05-24 MickeM
- Reworked real time event log support to be a lot more flexible
You can now specify all options on a "filter" level.
- WARNING*
Old syntax NOT supported (and will not upgrade) but hopefully not to many will be affected.
- Added support for ipv6 allowed hosts validation
2012-05-21 MickeM
- Sofia Born (My second daughter)
|
-
Property mode set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | cmake_minimum_required(VERSION 2.6) |
|---|
| 2 | |
|---|
| 3 | SET(TARGET NSCPServer) |
|---|
| 4 | |
|---|
| 5 | PROJECT(${TARGET}) |
|---|
| 6 | |
|---|
| 7 | # Workaround for bug 0003353 in cmake (aparently not fixed) |
|---|
| 8 | SET_SOURCE_FILES_PROPERTIES(${PB_PLUGIN} PROPERTIES GENERATED TRUE) |
|---|
| 9 | |
|---|
| 10 | SET(SRCS |
|---|
| 11 | stdafx.cpp |
|---|
| 12 | "${TARGET}.cpp" |
|---|
| 13 | "handler_impl.cpp" |
|---|
| 14 | ${NSCP_INCLUDEDIR}/nscp/packet.cpp |
|---|
| 15 | ${NSCP_INCLUDEDIR}/socket/socket_helpers.cpp |
|---|
| 16 | |
|---|
| 17 | ${NSCP_DEF_PLUGIN_CPP} |
|---|
| 18 | ) |
|---|
| 19 | |
|---|
| 20 | ADD_DEFINITIONS(${NSCP_GLOBAL_DEFINES}) |
|---|
| 21 | IF(OPENSSL_FOUND) |
|---|
| 22 | ADD_DEFINITIONS(-DUSE_SSL) |
|---|
| 23 | ENDIF(OPENSSL_FOUND) |
|---|
| 24 | |
|---|
| 25 | IF(WIN32) |
|---|
| 26 | SET(SRCS ${SRCS} |
|---|
| 27 | stdafx.h |
|---|
| 28 | "${TARGET}.h" |
|---|
| 29 | "${TARGET}.def" |
|---|
| 30 | "handler_impl.hpp" |
|---|
| 31 | ${NSCP_INCLUDEDIR}/nscp/server/protocol.hpp |
|---|
| 32 | ${NSCP_INCLUDEDIR}/nscp/server/handler.hpp |
|---|
| 33 | ${NSCP_INCLUDEDIR}/nscp/server/parser.hpp |
|---|
| 34 | ${NSCP_INCLUDEDIR}/nscp/packet.hpp |
|---|
| 35 | ${NSCP_INCLUDEDIR}/swap_bytes.hpp |
|---|
| 36 | ${NSCP_INCLUDEDIR}/socket/socket_helpers.hpp |
|---|
| 37 | |
|---|
| 38 | ${NSCP_DEF_PLUGIN_HPP} |
|---|
| 39 | ) |
|---|
| 40 | ENDIF(WIN32) |
|---|
| 41 | |
|---|
| 42 | add_library(${TARGET} MODULE ${SRCS}) |
|---|
| 43 | INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR}) |
|---|
| 44 | |
|---|
| 45 | target_link_libraries(${TARGET} |
|---|
| 46 | ${Boost_FILESYSTEM_LIBRARY} |
|---|
| 47 | ${Boost_THREAD_LIBRARY} |
|---|
| 48 | ${NSCP_DEF_PLUGIN_LIB} |
|---|
| 49 | ${OPENSSL_LIBRARIES} |
|---|
| 50 | ) |
|---|
| 51 | |
|---|
| 52 | INCLUDE(${BUILD_CMAKE_FOLDER}/module.cmake) |
|---|
| 53 | SOURCE_GROUP("Server" REGULAR_EXPRESSION .*include/nscp/.*) |
|---|
Note: See
TracBrowser
for help on using the repository browser.