Changeset 8673:2730ea4cfd49 in orange


Ignore:
Timestamp:
08/12/11 13:56:35 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
7a90fff24ce25f9310b421ff626ff97ff0718c19
Message:

Copy the generated orangeqt library to ORANGE_LIB_DIR

Location:
source/orangeqt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/CMakeLists.txt

    r8669 r8673  
    4444 
    4545add_sip_python_module(orangeqt orangeqt.sip) 
     46 
     47#### copying the library after building #### 
     48if (NOT ORANGE_LIB_DIR) 
     49    set (ORANGE_LIB_DIR "../..") 
     50endif() 
     51 
     52message(${ORANGE_LIB_DIR}) 
     53 
     54get_target_property(PYTHON_LIB_LOCATION python_module_orangeqt LOCATION) 
     55add_custom_command( 
     56   TARGET python_module_orangeqt 
     57   POST_BUILD 
     58   COMMAND ${CMAKE_COMMAND} -E copy ${PYTHON_LIB_LOCATION} ${ORANGE_LIB_DIR} 
     59 ) 
  • source/orangeqt/Makefile

    r8669 r8673  
    11ORANGEPLOT_BUILD_DIR=build 
     2ifndef OLD 
     3  OLD=.. 
     4endif 
     5 
    26 
    37all: 
    48    mkdir -p $(ORANGEPLOT_BUILD_DIR) 
    5     cd $(ORANGEPLOT_BUILD_DIR); cmake -DCMAKE_BUILD_TYPE=Release .. 
     9    cd $(ORANGEPLOT_BUILD_DIR); cmake -DCMAKE_BUILD_TYPE=Release -DORANGE_LIB_DIR=$(abspath $(OLD)) .. 
    610    if ! $(MAKE) $@ -C $(ORANGEPLOT_BUILD_DIR); then exit 1; fi; 
    7     cp $(ORANGEPLOT_BUILD_DIR)/orangeplot.so $(OLD) 
    811 
    912cleantemp: 
     
    1114 
    1215clean: cleantemp 
    13     rm -f $(OLD)/orangeplot.so 
     16    rm -f $(OLD)/orangeqt.so 
Note: See TracChangeset for help on using the changeset viewer.