if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    set(INSTALL_MISC_DIR .)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    set(INSTALL_MISC_DIR share/${CMAKE_PROJECT_NAME})
endif()
