File: CMakeLists.txt

package info (click to toggle)
csound-plugins 1.0.2~dfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,976 kB
  • sloc: cpp: 16,586; ansic: 7,522; python: 458; sh: 94; makefile: 25
file content (18 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Build py opcodes
option(BUILD_PYTHON_OPCODES "Build the py opcodes" ON)

if(${BUILD_PYTHON_OPCODES})
       find_package(Python3 COMPONENTS Interpreter Development)
       set(PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS})
       message("-- Python include dirs:   ${Python3_INCLUDE_DIRS}")
       set(PYTHON_LIBRARIES ${Python3_LIBRARIES})
       message("-- Python libraries:   ${PYTHON_LIBRARIES}")
       check_deps(BUILD_PYTHON_OPCODES Python3_FOUND)
    
    if(BUILD_PYTHON_OPCODES)
	make_plugin(py src/pythonopcodes.c)
	target_include_directories(py PRIVATE ${CSOUND_INCLUDE_DIRS})
	target_include_directories(py PRIVATE ${PYTHON_INCLUDE_DIRS})
	target_link_libraries(py ${PYTHON_LIBRARIES})
    endif()
endif()