Commit Graph

12 Commits

Author SHA1 Message Date
MarcelPiNacy-CVC 9f4c8422a8
Add functions and macros to aid in documentation and general usability. (#7639)
* Introduce the macros carla_add_executable, carla_add_library, carla_add_custom_target and introduce help dialog and help file generation.

* Remove semicolon on output.

* Switch from using configure time logic to a target "carla-help".

* Remove GCC_COMPILER option.

* Check PACKAGE_CONFIGURATION for empty.

* Revert to add_library for carla-ros2-native ExternalProject.

* Add function carla_add_target_docs and document "clean".

* Minor fix (missing names).

---------

Co-authored-by: Marcel Pi <25649656+MarcelPiNacy@users.noreply.github.com>
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-15 17:50:06 +02:00
MarcelPiNacy-CVC bca3b5abef
Fix LibCarla's Version.h.in (file configured by CMake to set the library version). (#7647)
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-15 16:07:47 +02:00
Xavier Solé Nogués 08c06a01df
Revert "Introduce several helper macros and utilities for improved usability.…" (#7635)
This reverts commit 321082ed0b.

Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-13 11:45:53 +02:00
MarcelPiNacy-CVC 321082ed0b
Introduce several helper macros and utilities for improved usability. (#7609)
* Introduce the macros carla_add_executable, carla_add_library, carla_add_custom_target and introduce help dialog and help file generation.

* Remove semicolon on output.

* Switch from using configure time logic to a target "carla-help".

* Remove GCC_COMPILER option.

* Check PACKAGE_CONFIGURATION for empty.

---------

Co-authored-by: Marcel Pi <25649656+MarcelPiNacy@users.noreply.github.com>
Co-authored-by: Marcel Pi <marcelpi97@gmail.com>
2024-05-13 09:47:15 +02:00
Marcel Pi 4212ff6701
Add wheel package generation. (#7334)
* Python package progress

* Remove unneeded POST_BUILD command.

* Switch to scikit-build-core (WIP)

* More changes boost::python-related changes.

* Add LICENSE copy, remove explicit reference to C/C++ compiler.

* Switch back to pure CMake build, using package data to include C++ extension binaries.

* Minor changes.

* Add fallback if PEP517 is unavailable.

* Integrate PythonAPI target in main build.

* Fix minor build order issue.

* Remove invalid option in setup.py.

* Address review comments.

* Switch finally to scikit-build-core for PythonAPI build/wheel and refactor CMake folder.

* Minor fix.

* Update gitignore.

* Minor change.

* Remove unused CarlaOptions include

* Add missing file copy.

* Add several Ubuntu-related changes.

* Update requirements.txt

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

* Update CMake/Common.cmake

Co-authored-by: Xavier Solé Nogués <xavisolesoft@gmail.com>

---------

Co-authored-by: xavisolesoft <xavisolesoft@gmail.com>
2024-04-09 16:32:09 +02:00
Marcel Pi c40e9780c3
Switch to wrapper macro for options. (#7313) 2024-04-02 14:16:27 +01:00
Marcel Pi d07a623c9c
Fix additional issues with escape characters in carla_string_option. (#7293)
* Fix string option escape character errors.

* Additional string option escape character fixes.

* Minor formatting change.

* More fixes.

* Revert back to file copy for *.def.

* Fix build order issue related to carla-unreal-configure.

* Update CMakeLists.txt

* Update CMakeLists.txt

* Switch to using file(GENERATE ...)
2024-03-25 17:23:16 +01:00
Marcel Pi 57223e7387 Fix incorrect dependency order when generating UE project files + other minor fixes. 2024-03-20 11:34:44 +01:00
Marcel Pi 3206014587 Fix missing cmake_error definition. 2024-03-18 14:09:38 +01:00
Marcel Pi b423fe06e2 Fix CMake PythonAPI build. Disable OSM2ODR and OSM World Renderer. 2024-02-20 16:34:31 +01:00
Marcel Pi 96b5aadd45 Fix boost build. 2024-02-13 09:23:52 +01:00
Marcel Pi aeaa621e3a More progress with pure CMake migration. 2024-02-06 21:47:29 +01:00