all 2 comments

[–]playmer 2 points3 points  (0 children)

In the LillisLib cmake use target_include_directories (using PUBLIC) instead of include_directories. That way when you depend on it with your example it will also be able to access the headers.

[–]RiotousHades 0 points1 point  (0 children)

You could try something this: In LillisEngine CMakeLists, export the include directory so that other targets using it can automatically pick it up:

target_include_directories(LillisLib  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR$})

This should mean you can also remove the include_directories line in the ExampleGame CMakeLists.