apple / swift-cmake-examples

Apache License 2.0
99 stars 9 forks source link

Dealing with multiple swift files : hello.swift and world.swift #11

Open afabri opened 2 months ago

afabri commented 2 months ago

When using more than one swift file to build the executable hello., one of them must be called main.swift.
It might make sense to. have that as a seprarate example, or just telling it in the readme.

afabri commented 2 months ago

Adding a swift file to 2_executable_library/lib/CMakeLists.txt. works without any change.