I'm trying to link up CMake for a old project, this is the relevant structure:
Project
-build
-src
-res/include/irk
-all the irrklang header files
In my top-level CMakeLists.txt
I have:
target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/res/include/irk/")
I believe that's all that is needed since IrrKlang is a header-only library as far as I know. When I try to build however, I get this error:
undefined reference to `irrklang::createIrrKlangDevice(irrklang::E_SOUND_OUTPUT_DRIVER, int, char const*, char const*)'
For some reason CMake doesnt pick up on the library and I've no idea why.