4

Is there a way to tell CMake to compile .pas source files with standard add_executable and target_link_libraries calls (like for c and c++ projects)?

Currently, we just list the files and use add_custom_command / add_custom_target and manually set the linker flags, but it would be nice to have something more integrated.

Source file: http://code.google.com/p/hedgewars/source/browse/hedgewars/CMakeLists.txt

starball
  • 20,030
  • 7
  • 43
  • 238
koda
  • 741
  • 1
  • 7
  • 18

1 Answers1

0

According to the CMake docs for the enable_language() command and this question: What are the possible values for the LANGUAGE variable in CMAKE, it looks like the answer is no, there is currently no such way to build Pascal source code with the standard add_executable and target_link_libraries.

You can open up an issue ticket on Kitware's CMake GitLab repo requesting such functionality be added. If you do so, add a link to it here.

starball
  • 20,030
  • 7
  • 43
  • 238