Commit 4d96d6c23c9ae0be5a266d55679c32a0fec30bac

Authored by Michał Lenart
1 parent ef308e17

poprawka w CMakeLists.txt dla javy

git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@186 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing 1 changed file with 4 additions and 5 deletions
morfeusz/java/CMakeLists.txt
... ... @@ -14,20 +14,19 @@ include_directories (${JAVA_INCLUDE_PATH})
14 14 include_directories (${JAVA_INCLUDE_PATH2})
15 15 include_directories (..)
16 16  
17   -set (SWIG_JAVA_OUTFILE swigJAVA.cpp)
  17 +set (SWIG_JAVA_OUTFILE "${CMAKE_CURRENT_BINARY_DIR}/swigJAVA.cpp")
18 18 file (COPY pl DESTINATION .)
19 19 set (JAVA_SRC_DIR "${CMAKE_CURRENT_BINARY_DIR}/pl/waw/ipipan/morfeusz")
20   -add_custom_target (
21   - libjmorfeusz_cxx
22   -# OUTPUT ${SWIG_JAVA_OUTFILE}
  20 +add_custom_command (
  21 + OUTPUT ${SWIG_JAVA_OUTFILE}
23 22 COMMAND swig -java -c++ -package pl.waw.ipipan.morfeusz -o ${SWIG_JAVA_OUTFILE} -outdir ${JAVA_SRC_DIR} ${CMAKE_SOURCE_DIR}/morfeusz/morfeusz.i
24 23 DEPENDS libmorfeusz
25 24 )
26 25  
27 26 add_library (libjmorfeusz SHARED ${SWIG_JAVA_OUTFILE})
  27 +add_dependencies (libjmorfeusz libjmorfeusz_cxx)
28 28 set_target_properties (libjmorfeusz PROPERTIES OUTPUT_NAME "jmorfeusz")
29 29 target_link_libraries (libjmorfeusz ${JAVA_LIBRARIES} libmorfeusz)
30   -add_dependencies (libjmorfeusz libjmorfeusz_cxx)
31 30  
32 31 if ( CMAKE_COMPILER_IS_GNUCC )
33 32 set_property( TARGET libjmorfeusz APPEND_STRING PROPERTY COMPILE_FLAGS -w )
... ...