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 terminal.cc
) )
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
add_library(${module} SHARED add_library(${module} SHARED
api api
api_ext api_ext
@ -132,8 +135,8 @@ link_directories(
${LIBCLANG_LIBRARY_DIRS} ${LIBCLANG_LIBRARY_DIRS}
) )
#module: #module:
set_target_properties(${module} PROPERTIES PREFIX "") set_target_properties(${module} PROPERTIES PREFIX ""
# LIBRARY_OUTPUT_DIRECTORY "/usr/lib/python2.7/dist-packages/") LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib/")
target_link_libraries(${module} ${PYTHON_LIBRARIES} ${Boost_LIBRARIES}) target_link_libraries(${module} ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
#executable: #executable:
target_link_libraries(${project_name} ${LIVCLANG_LIBRARIES} ${LCL_LIBRARIES} ${GTKMM_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES}) 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 #plugin handler
import sys, os, glob import sys, os, glob
cwd = os.getcwd() cwd = os.getcwd()
sys.path.append(cwd) sys.path.append(cwd+"/lib")
import juci_to_python_api as juci import juci_to_python_api as juci
def loadplugins(): def loadplugins():

Loading…
Cancel
Save