source: nscp/modules/PythonScript/CMakeLists.txt @ d7e265d

0.4.00.4.10.4.2
Last change on this file since d7e265d was b8c44b4, checked in by Michael Medin <michael@…>, 23 months ago

more invalid folders fixed... git git git!!! :(

  • Property mode set to 100644
File size: 634 bytes
Line 
1cmake_minimum_required(VERSION 2.6)
2
3SET(TARGET PythonScript)
4       
5PROJECT(${TARGET})
6
7SET(SRCS
8        stdafx.cpp
9        "${TARGET}.cpp"
10        script_wrapper.cpp
11        ${NSCP_DEF_PLUGIN_CPP}
12)
13
14ADD_DEFINITIONS(${NSCP_GLOBAL_DEFINES} -DBOOST_PYTHON_STATIC_LIB)
15
16
17IF(WIN32)
18        SET(SRCS ${SRCS}
19                stdafx.h
20                script_wrapper.hpp
21                "${TARGET}.h"
22                "${TARGET}.def"
23
24                ${NSCP_DEF_PLUGIN_HPP}
25        )
26ENDIF(WIN32)
27INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
28
29add_library(${TARGET} MODULE ${SRCS})
30
31target_link_libraries(${TARGET}
32        ${Boost_FILESYSTEM_LIBRARY}
33        ${Boost_PYTHON_LIBRARY}
34        ${NSCP_DEF_PLUGIN_LIB}
35        ${PYTHON_LIBRARIES}
36)
37INCLUDE(${BUILD_CMAKE_FOLDER}/module.cmake)
Note: See TracBrowser for help on using the repository browser.