Re: [CMake] Order of compilation of Java files
Andreas, Do you mind sharing a CMakeLists.txt for one of your Java projects? Thank You. -- Artur Kedzierski -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Andreas Pakulat Sent: Thursday, March 08, 2012 8:33 To: cmake@cmake.org Subject: Re: [CMake] Order of compilation of Java files On 08.03.12 06:39:37, Kedzierski, Artur CIV NSWC Corona, PA13 wrote: > I am trying to use CMake for a small Java project that's part of a bigger C++ > project. > I have a Java project that looks like that: > > project(MyProject Java) > include_directories("${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MyProject.dir") > add_library(MyProject > file1.java > file2.java > file3.java > ) > > It works on Linux. However, when I tried it on Windows, I've ran into two > problems: > 1) The resulting *.class files were placed in "${CMAKE_CURRENT_BINARY_DIR}". > As a > work around, I changed include_directories to be: > include_directories("${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MyProject.dir" > "${CMAKE_CURRENT_BINARY_DIR}") > Is there a way to specify where the *.class file will be generated? > > 2) Unlike on Linux, the java files are not compiled in a listed order. I have > dependencies where > one file2.java depends on file1.class so it doesn't compile. > How can I tell it to compile the *.java files in specific order? Is there a > way for CMake to automatically > determine the dependencies? I've looked at using CMake to build some Java files (in an otherwise C++/C project) some time ago and the result was that Java-support simply does not fit with CMake's language and functions - at least not in the way include_directories() and co are currently implemented for Java. So I've simply opted for custom-command's and targets to compile Java. Andreas -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Order of compilation of Java files
I am trying to use CMake for a small Java project that's part of a bigger C++ project. I have a Java project that looks like that: project(MyProject Java) include_directories("${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MyProject.dir") add_library(MyProject file1.java file2.java file3.java ) It works on Linux. However, when I tried it on Windows, I've ran into two problems: 1) The resulting *.class files were placed in "${CMAKE_CURRENT_BINARY_DIR}". As a work around, I changed include_directories to be: include_directories("${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/MyProject.dir" "${CMAKE_CURRENT_BINARY_DIR}") Is there a way to specify where the *.class file will be generated? 2) Unlike on Linux, the java files are not compiled in a listed order. I have dependencies where one file2.java depends on file1.class so it doesn't compile. How can I tell it to compile the *.java files in specific order? Is there a way for CMake to automatically determine the dependencies? Thank You -- Artur Kedzierski smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Utilities/cmcurl/CMakeLists.txt patch
The issue is corresponding to the last question in my email but not to the patch. Should I create a new issue in the tracker? -- Artur Kedzierski -Original Message- From: Jean-Christophe Fillion-Robin [mailto:jchris.filli...@kitware.com] Sent: Tuesday, February 07, 2012 12:38 To: Kedzierski, Artur CIV NSWC Corona, PA13 Cc: cmake@cmake.org Subject: Re: [CMake] Utilities/cmcurl/CMakeLists.txt patch There is a corresponding issue in the tracker: http://www.cmake.org/Bug/view.php?id=11743 Jc On Tue, Feb 7, 2012 at 2:38 PM, Kedzierski, Artur CIV NSWC Corona, PA13 wrote: Can we have an option to set built-in Curl's CA certificate bundle path? Currently, there is no way to override it. Unfortunately, I cannot generate a patch using diff as I have to re-type it from another computer. Could this be added to Utilities/cmcurl/CMakeLists.txt? : SET(CURL_CA_BUNDLE "" CACHE FILEPATH "Path to SSL CA Certificate Bundle") MARK_AS_ADVANCED(CURL_CA_BUNDLE) IF(CURL_CA_BUNDLE) ADD_DEFINITIONS(-DCURL_CA_BUNDLE="${CURL_CA_BUNDLE}") ENDIF(CURL_CA_BUNDLE) On Linux, I just re-compile CMake to use system's libcurl. However, on Windows, I have to modify the code. By the way, any chance on having SSL-enabled CMake packages on cmake.org website? Thank You. -- Artur Kedzierski -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- +1 919 869 8849 smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Utilities/cmcurl/CMakeLists.txt patch
Can we have an option to set built-in Curl's CA certificate bundle path? Currently, there is no way to override it. Unfortunately, I cannot generate a patch using diff as I have to re-type it from another computer. Could this be added to Utilities/cmcurl/CMakeLists.txt? : SET(CURL_CA_BUNDLE "" CACHE FILEPATH "Path to SSL CA Certificate Bundle") MARK_AS_ADVANCED(CURL_CA_BUNDLE) IF(CURL_CA_BUNDLE) ADD_DEFINITIONS(-DCURL_CA_BUNDLE="${CURL_CA_BUNDLE}") ENDIF(CURL_CA_BUNDLE) On Linux, I just re-compile CMake to use system's libcurl. However, on Windows, I have to modify the code. By the way, any chance on having SSL-enabled CMake packages on cmake.org website? Thank You. -- Artur Kedzierski smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Testing 'install'/'package' with CTest
Erk, Thank You! That did the trick. Package was created and 'TestPackage' showed up as one of the results of testing on CDash. -- Artur Kedzierski -Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Thursday, January 26, 2012 13:43 To: Kedzierski, Artur CIV NSWC Corona, PA13 Cc: cmake@cmake.org Subject: Re: [CMake] Testing 'install'/'package' with CTest 2012/1/26 Eric Noulard : > 2012/1/26 Eric Noulard : >> 2012/1/26 Kedzierski, Artur CIV NSWC Corona, PA13 >> : >>> Since I didn't receive any responses, I figured that I'll try asking this >>> question again. >>> I would like CTest nightly/continuous test my 'install'/'package' target >>> and submit the >>> results to CDash. Is there currently any way to do that? >> >> In your ctest script did try to insert >> >> ctest_build(BUILD yourbuildir TARGET package APPEND) >> >> after your (may be) >> ctest_build(BUILD yourbuildir APPEND) > > Sorry but this does not seem to work "as-is". > However adding > > add_test(TestPackage ${CMAKE_BUILD_TOOL} package) > > works: it adds a new test "TestPackage" which consist in running the > "build tool" in order to build the "package" target. > > In my test case the add_test is added in the main CMakeLists.txt. Example result of such test: http://my.cdash.org/testDetails.php?test=8657823&build=288675 This is for an Open Source project: https://savannah.nongnu.org/projects/certi You can check, The main CMakeLists.txt: http://cvs.savannah.gnu.org/viewvc/certi/CMakeLists.txt?root=certi&view=log The ctest scripts used: http://cvs.savannah.gnu.org/viewvc/certi/scripts/certi-ctest.cmake?root=certi&view=log -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Testing 'install'/'package' with CTest
Since I didn't receive any responses, I figured that I'll try asking this question again. I would like CTest nightly/continuous test my 'install'/'package' target and submit the results to CDash. Is there currently any way to do that? I appreciate any help. -- Artur Kedzierski -----Original Message----- From: Kedzierski, Artur CIV NSWC Corona, PA13 Sent: Friday, December 02, 2011 8:56 To: 'cmake@cmake.org' Subject: Testing 'install' with CTest Hi, Is there any way for CTest to execute the 'install' target in addition to compilation, unit testing, etc.? I.e. 'make install' on Linux and similar on other platforms. Then submit the results to CDash. We have a continuous build that currently runs the CTest followed by 'make install' and 'devenv ... /project install'. The problem is that when somebody changes one of CMakeLists.txt files to modify INSTALL(...) and sets it incorrectly, CDash will have no record of the error. smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Testing 'install' with CTest
Hi, Is there any way for CTest to execute the 'install' target in addition to compilation, unit testing, etc.? I.e. 'make install' on Linux and similar on other platforms. Then submit the results to CDash. We have a continuous build that currently runs the CTest followed by 'make install' and 'devenv ... /project install'. The problem is that when somebody changes one of CMakeLists.txt files to modify INSTALL(...) and sets it incorrectly, CDash will have no record of the error. smime.p7s Description: S/MIME cryptographic signature -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake