set(SDK_OSCPACK "" CACHE PATH "oscpack build directory") if(SDK_OSCPACK) if(WIN32) if(NOT EXISTS "${SDK_OSCPACK}/include/.") message(FATAL_ERROR "SDK_OSCPACK should have 'include' subdirectory (or symlink) to src dir") endif() link_directories("${SDK_OSCPACK}") include_directories("${SDK_OSCPACK}/include" "${SDK_OSCPACK}/include/oscpack") else() link_directories("${SDK_OSCPACK}/lib" "${SDK_OSCPACK}/lib32") include_directories("${SDK_OSCPACK}/include/oscpack") endif() link_libraries(oscpack) otr_module(proto-osc) endif()