From 1e30cf6c16095295796fdf80efd94b39cec73a30 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Wed, 8 Mar 2017 01:20:02 -0700 Subject: [PATCH] CMake: Build PythonThread as an IGATEEXT This frees up a dependency from p3pipeline proper against Python --- panda/src/pipeline/CMakeLists.txt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/panda/src/pipeline/CMakeLists.txt b/panda/src/pipeline/CMakeLists.txt index 141cb6ae4a..9775c4b891 100644 --- a/panda/src/pipeline/CMakeLists.txt +++ b/panda/src/pipeline/CMakeLists.txt @@ -124,21 +124,15 @@ if(WIN32) ) endif() -if(HAVE_PYTHON) - set(P3PIPELINE_HEADERS - ${P3PIPELINE_HEADERS} - pythonThread.h - ) - set(P3PIPELINE_SOURCES - ${P3PIPELINE_SOURCES} +set(P3PIPELINE_IGATEEXT pythonThread.cxx - ) -endif() + pythonThread.h +) composite_sources(p3pipeline P3PIPELINE_SOURCES) add_library(p3pipeline ${P3PIPELINE_HEADERS} ${P3PIPELINE_SOURCES}) target_link_libraries(p3pipeline p3express) -target_interrogate(p3pipeline ALL) +target_interrogate(p3pipeline ALL EXTENSIONS ${P3PIPELINE_IGATEEXT}) install(TARGETS p3pipeline DESTINATION lib) install(FILES ${P3PIPELINE_HEADERS} DESTINATION include/panda3d)