source: nscp/libs/plugin_api/CMakeLists.txt @ 84cdb9b

0.4.00.4.10.4.2
Last change on this file since 84cdb9b was 84cdb9b, checked in by Michael Medin <michael@…>, 15 months ago

Cleaned up the API helper classes to make inclusion simpler and more modular.
Also removed some dead code no longer used

  • Property mode set to 100644
File size: 1.9 KB
Line 
1cmake_minimum_required(VERSION 2.6)
2
3SET(TARGET plugin_api)
4
5INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIRS})
6LINK_DIRECTORIES(${BOOST_LIB_DIRS})
7#INCLUDE_DIRECTORIES(${NSCP_INCLUDEDIR})
8
9SET(SRCS
10        ${NSCP_INCLUDEDIR}/arrayBuffer.cpp
11        ${NSCP_INCLUDEDIR}/simpleini/ConvertUTF.c
12        ${NSCP_INCLUDEDIR}/b64/b64.c
13        ${NSCP_INCLUDEDIR}/utils.cpp
14       
15        ${NSCP_INCLUDEDIR}/nscapi/nscapi_core_wrapper.cpp
16        ${NSCP_INCLUDEDIR}/nscapi/nscapi_helper.cpp
17        ${NSCP_INCLUDEDIR}/nscapi/nscapi_plugin_impl.cpp
18        ${NSCP_INCLUDEDIR}/nscapi/nscapi_plugin_wrapper.cpp
19        ${NSCP_INCLUDEDIR}/nscapi/nscapi_protobuf_functions.cpp
20        ${NSCP_INCLUDEDIR}/nscapi/nscapi_protobuf_types.cpp
21        ${NSCP_INCLUDEDIR}/nscapi/nscapi_targets.cpp
22       
23        ${NSCP_INCLUDEDIR}/settings/client/settings_client.cpp
24)
25       
26IF(WIN32)
27        SET(SRCS ${SRCS}
28
29                ${NSCP_INCLUDEDIR}/strEx.h
30                ${NSCP_INCLUDEDIR}/config.h
31                ${NSCP_INCLUDEDIR}/utils.h
32                ${NSCP_INCLUDEDIR}/NSCAPI.h
33               
34                ${NSCP_INCLUDEDIR}/nscapi/nscapi_core_wrapper.hpp
35                ${NSCP_INCLUDEDIR}/nscapi/nscapi_helper.hpp
36                ${NSCP_INCLUDEDIR}/nscapi/nscapi_plugin_impl.hpp
37                ${NSCP_INCLUDEDIR}/nscapi/nscapi_plugin_wrapper.hpp
38                ${NSCP_INCLUDEDIR}/nscapi/nscapi_protobuf_functions.hpp
39                ${NSCP_INCLUDEDIR}/nscapi/nscapi_protobuf_types.hpp
40                ${NSCP_INCLUDEDIR}/nscapi/nscapi_targets.hpp
41
42                ${NSCP_INCLUDEDIR}/settings/client/settings_client.hpp
43                ${NSCP_INCLUDEDIR}/nscapi/settings_proxy.hpp
44                ${NSCP_INCLUDEDIR}/nscapi/macros.hpp
45
46        )
47ENDIF(WIN32)
48
49ADD_DEFINITIONS(${NSCP_GLOBAL_DEFINES})
50
51add_library(${TARGET} ${SRCS})
52target_link_libraries(${TARGET} protobuf)
53ADD_DEPENDENCIES(${TARGET} protobuf)
54
55SET_TARGET_PROPERTIES(${TARGET} PROPERTIES FOLDER "libraries")
56IF(CMAKE_COMPILER_IS_GNUCXX)
57        IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
58                SET_TARGET_PROPERTIES(${TARGET} PROPERTIES COMPILE_FLAGS -fPIC)
59        ENDIF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
60ENDIF(CMAKE_COMPILER_IS_GNUCXX)
Note: See TracBrowser for help on using the repository browser.