Browse Source

moved python module to /lib and executable to /bin, updated plugins.py

master
tedjk 11 years ago
parent
commit
45218c42a8
  1. 7
      juci/CMakeLists.txt
  2. 2
      juci/plugins.py

7
juci/CMakeLists.txt

@ -111,6 +111,9 @@ add_executable(${project_name}
terminal.cc
)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
add_library(${module} SHARED
api
api_ext
@ -132,8 +135,8 @@ link_directories(
${LIBCLANG_LIBRARY_DIRS}
)
#module:
set_target_properties(${module} PROPERTIES PREFIX "")
# LIBRARY_OUTPUT_DIRECTORY "/usr/lib/python2.7/dist-packages/")
set_target_properties(${module} PROPERTIES PREFIX ""
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib/")
target_link_libraries(${module} ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
#executable:
target_link_libraries(${project_name} ${LIVCLANG_LIBRARIES} ${LCL_LIBRARIES} ${GTKMM_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})

2
juci/plugins.py

@ -2,7 +2,7 @@
#plugin handler
import sys, os, glob
cwd = os.getcwd()
sys.path.append(cwd)
sys.path.append(cwd+"/lib")
import juci_to_python_api as juci
def loadplugins():

Loading…
Cancel
Save