Commit 597eaa7e authored by Shervin Nourbakhsh's avatar Shervin Nourbakhsh
Browse files

fix compiling with maven the entire project from cameo/ dir

parent 817a94bf
...@@ -31,9 +31,9 @@ endmacro() ...@@ -31,9 +31,9 @@ endmacro()
#dependencies #dependencies
foreach(package cameo-com-jzmq ) #foreach(package cameo-com-jzmq )
add_subdirectory(cameo-com/${package}) # add_subdirectory(cameo-com/${package})
endforeach() #endforeach()
foreach(package cameo-server-jzmq cameo-console-jzmq foreach(package cameo-server-jzmq cameo-console-jzmq
......
...@@ -21,10 +21,11 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/installed/${JAVA_INSTALL_DIR}) ...@@ -21,10 +21,11 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/installed/${JAVA_INSTALL_DIR})
add_custom_command( add_custom_command(
OUTPUT ${PROJECT_JAR} OUTPUT ${PROJECT_JAR}
COMMAND mvn install COMMAND mvn clean install
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../
VERBATIM VERBATIM
) )
add_custom_target(server add_custom_target(server
ALL ALL
DEPENDS ${PROJECT_JAR} DEPENDS ${PROJECT_JAR}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment